Separate global cache/registry and bin/package management directories and files #12725
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.
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
andCARGO_CACHE
.Some examples from other package managers:
Notes
No response
The text was updated successfully, but these errors were encountered: