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

Separate global cache/registry and bin/package management directories and files #12725

Closed
Destroy666x opened this issue Sep 22, 2023 · 3 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.

Comments

@Destroy666x
Copy link

Destroy666x commented Sep 22, 2023

Problem

Mixing these together is definitely not a great idea. It makes automated setups harder as they have to go for specific files/subdirs instead of just one directory, if you don't want to copy random package cache between machines. It also makes cleanup etc. harder and more confusing as can be seen by e.g. the advice here: #3289 (comment) (and the whole issue has been hanging on "needs input" status for few years now).

Proposed Solution

Separate these directories and allow separate environment variables for them, e.g. CARGO_HOME and CARGO_CACHE.

Some examples from other package managers:

Notes

No response

@Destroy666x Destroy666x added C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage. labels Sep 22, 2023
@epage
Copy link
Contributor

epage commented Sep 22, 2023

If I'm understanding correctly, this appears to be a duplicate of #1734

@Destroy666x
Copy link
Author

Destroy666x commented Sep 22, 2023

Not quite, it's a similar request which I also support, but it's related. That is more about following XDG standard (which also separates cache if you follow it very well), this is more focused on just tidying up directory structure and separating cache and the rest of global files, on all systems.

@epage
Copy link
Contributor

epage commented Sep 28, 2023

Solving this kind of problem needs to be done in the context of #1734, so I'm closing in favor of that. We wouldn't want to design part way on this and realize there is a problem. Granted, if we decide support for these variables is important, it'll likely be stable in one of the earliest stages of the effort.

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants