Skip to content
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

Merged
merged 1 commit into from
May 13, 2016

Conversation

alexcrichton
Copy link
Member

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

@rust-highfive
Copy link

r? @wycats

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @brson

@rust-highfive rust-highfive assigned brson and unassigned wycats May 12, 2016
@brson
Copy link
Contributor

brson commented May 12, 2016

@bors r+

@bors
Copy link
Contributor

bors commented May 12, 2016

📌 Commit ec6a28c has been approved by brson

@bors
Copy link
Contributor

bors commented May 12, 2016

⌛ Testing commit ec6a28c with merge b6e7bf4...

@bors
Copy link
Contributor

bors commented May 12, 2016

💔 Test failed - cargo-win-msvc-64

@alexcrichton
Copy link
Member Author

@bors: r=brson 165258c

@bors
Copy link
Contributor

bors commented May 12, 2016

⌛ Testing commit 165258c with merge 04e1016...

@bors
Copy link
Contributor

bors commented May 12, 2016

💔 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
@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented May 13, 2016

📌 Commit ee0b711 has been approved by brson

@bors
Copy link
Contributor

bors commented May 13, 2016

⌛ Testing commit ee0b711 with merge 0907288...

bors added a commit that referenced this pull request May 13, 2016
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
@bors
Copy link
Contributor

bors commented May 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants