-
Notifications
You must be signed in to change notification settings - Fork 13.4k
cargo: Add local mode and use it by default #1760
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
Conversation
Hm. Can we rephrase this as 3 modes: local, user and system? "Global" is a bit ambiguous (user/system) and we have a sysroot that the compiler at least knows about, can consider viable for system-level installation. |
Otherwise cool, btw :) |
I think that's better! |
* -g or --mode=user to create/use .cargo under $HOME * -G or --mode=system to create/use .cargo under sysroot * by default, `cargo` uses .cargo under current working directory
changes from previous commit:
|
Hi tychosci. This is looking great, but I have one quibble about how the system cargo files are installed. This appears to put them under |
Oh, if we did that though we would not have a place to put all of cargo's work files. |
OK. I pushed this but disabled system mode so we can reconsider how it works. Added #1795. Thanks! |
Ah, I did not notice about that, since I always install rustc and its libs and tools with I agree that I personally think Furthermore, I think all operations by user-mode and local-mode should use resources of system-mode's cargo. |
Issue #1756
The changes are the following:
std::getopts
in cargo.rs to avoid arguments ordering problems.