Detect and warn against changes in ~/.cargo/registry
#15078
Labels
A-caching
Area: caching of dependencies, repositories, and build artifacts
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
It is easy to accidentally change files in the
~/.cargo/registry
, for example by going to definition of a library and changing its code. Also, newcomers might intentionally change those files and expect them to take effect.Proposed Solution
patch.crates-io
if they really want to change their dependencies.Notes
It might also be a good idea to make the directory read only and only user cargo can change it, but it is harder to do it in a cross platform way I guess.
The text was updated successfully, but these errors were encountered: