-
Notifications
You must be signed in to change notification settings - Fork 952
Allow specifying installation root other than ~/.cargo/ #473
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
Comments
What are you thinking more specifically? rustup is intended (for now at least) to be run out of This is doable, but it means that the way PATH is setup will also need to change, that the proxies will need to tell cargo where it's home is (though it already incidentally does this, but I sort of want it not to). The location of CARGO_HOME is also closely related to the location of RUSTUP_HOME - it's likely that if you want to change one you want to change both. FWIW if |
I mostly want tools to not put configuration along with the binaries. For rustup installations I would like its configuration to live in some path specified by an environment variable ( |
I think the default shouldn't be It should go into |
@shmerl that's rust-lang/rfcs#1615 |
@steveklabnik: Thanks, I didn't realize it was such a thorny issue. I thought using XDG shouldn't cause any such trouble. Still, I'm strongly in favor of it. |
I would love to be able to install rust on a computer as root so that multiple users can all use rust. I think this requires separating rustup's location from the location where each user running cargo will have cargo download packages. |
What if users are using a NFS such a lustre? it cannot installed into NFS and be distributed. |
Would be nice if rustup followed the same patterns as
The rust repo's x.py and |
An example of why someone might like to install elsewhere: Ones' home dir may be on an attached network share (not uncommon in many a corporate environment). These network drives are not normally known for their speed and would be a sub-optimal location for a cache. |
|
Great, so we can close this out? Sent with GitHawk |
Is XDG base directory support already implemented though? I.e. default shouldn't be |
|
So it's still a problem then. Wasn't there some effort to implement it though a while ago? Looks like it stalled. But this particular issue can probably be closed, since you can indeed use CARGO_HOME and RUSTUP_HOME to set the location. XDG dirs support is a bit different issue. |
#247 is the ticket for XDG support; it is blocked on cargo (read through the ticket, links are in there). This ticket is about customisation, and as we have that, yes, it can be closed. |
I just hit this issue where my home is mounted with NFS in a cross platform environment (x86, Arm, others), but there's only one bin directory. (edit: reworded) |
@tommythorn as explained earlier in this issue, |
Since binaries are platform specific. perhaps, rust putting binaries in those in $CARGO_HOME/@platform e.g /@x86 /@arm /@Win32 /@win64 /@whatever, would satisfy NFS use-case sharing same CARGO_HOME across many OS-es where a compilation could happen, and binary of that platform invoked? |
No description provided.
The text was updated successfully, but these errors were encountered: