-
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
Don't use .cargo
for custom CARGO_HOME
#1148
Conversation
Users changing cargo's home directory expect it to be used as top path instead of there being a `.cargo` hidden dir in it. There are some cases following this pattern one of them is python's virtualenvwrapper, which uses `WORK_HOME` as a home dir for everything. This patch removes the extra `.cargo` and assumes that CARGO_HOME is the real path a user wants to use as a homedir for cargo.
@brson r? |
I think we need @alexcrichton's review here. |
👍 |
(Aren't we meant to be using the XDG variables by default per #148 as well?) |
@huonw My only concern is that for Servo, we need to be able to not write any files outside of the enlistment directory. |
@larsbergstrom, yeah, that would only be the default (rather than |
I think the order of precedence we would have (in theory) would be:
Which is to say that I think we can still fit in the XDG specification here. |
⌛ Testing commit bef8095 with merge b9a80db... |
💔 Test failed - cargo-win-64 |
@bors: retry |
⌛ Testing commit bef8095 with merge ed06187... |
💔 Test failed - cargo-win-64 |
@bors: retry |
Users changing cargo's home directory expect it to be used as top path instead of there being a `.cargo` hidden dir in it. There are some cases following this pattern one of them is python's virtualenvwrapper, which uses `WORK_HOME` as a home dir for everything. This patch removes the extra `.cargo` and assumes that CARGO_HOME is the real path a user wants to use as a homedir for cargo.
☀️ Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-32, cargo-win-64 |
Users changing cargo's home directory expect it to be used as top path
instead of there being a
.cargo
hidden dir in it. There are some casesfollowing this pattern one of them is python's virtualenvwrapper, which
uses
WORKON_HOME
as a home dir for everything.This patch removes the extra
.cargo
and assumes that CARGO_HOME is thereal path a user wants to use as a homedir for cargo.