-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canonicalize CARGO_HOME fallback on Windows #2681
Conversation
r? @wycats (rust_highfive has picked a reviewer for you, use r? to override) |
r? @brson |
@bors r+ |
📌 Commit ec6a28c has been approved by |
⌛ Testing commit ec6a28c with merge b6e7bf4... |
💔 Test failed - cargo-win-msvc-64 |
ec6a28c
to
165258c
Compare
@bors: r=brson 165258c |
⌛ Testing commit 165258c with merge 04e1016... |
💔 Test failed - cargo-win-msvc-32 |
This commit ensures that we always return the same fallback value on Windows regardless of whichever shell we happen to be run from. We do this by removing the `$HOME` environment variable which `std::env::home_dir` will inspect to force it to fall back to the system APIs. If the old directory exists then we favor that one, but otherwise we favor locations like `C:\Users\$user` Supercedes and closes rust-lang#2604
165258c
to
ee0b711
Compare
@bors: r=brson |
📌 Commit ee0b711 has been approved by |
Canonicalize CARGO_HOME fallback on Windows This commit ensures that we always return the same fallback value on Windows regardless of whichever shell we happen to be run from. We do this by removing the `$HOME` environment variable which `std::env::home_dir` will inspect to force it to fall back to the system APIs. If the old directory exists then we favor that one, but otherwise we favor locations like `C:\Users\$user` Supercedes and closes #2604
☀️ Test successful - cargo-cross-linux, cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64 |
This commit ensures that we always return the same fallback value on Windows
regardless of whichever shell we happen to be run from. We do this by removing
the
$HOME
environment variable whichstd::env::home_dir
will inspect toforce it to fall back to the system APIs. If the old directory exists then we
favor that one, but otherwise we favor locations like
C:\Users\$user
Supercedes and closes #2604