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

Add a command to clean up cache packages #3712

Closed
jrmuizel opened this issue Feb 15, 2017 · 4 comments
Closed

Add a command to clean up cache packages #3712

jrmuizel opened this issue Feb 15, 2017 · 4 comments

Comments

@jrmuizel
Copy link

It seems like the crate cache grows without bound. It would be nice to have a command to clear it.

@alexcrichton
Copy link
Member

FWIW blowing away ~/.cargo/registry and ~/.cargo/git should always be ok, but I do agree it'd be nice to have a command to automatically do so!

@russel
Copy link

russel commented Sep 27, 2017

Having thought about this in the context of the Approx Debian package cache, there seems no algorithms for cleaning packages that are not best implemented by manual use of rm and find. A cache cannot predict which packages will be used, so there is no determinism as to which packages are actually needed – dependencies cannot be calculated. Thus algorithms such as "older than X" or "everything" are all that you can do. "Keep all but the latest" is perhaps the only algorithm not easily implemented with find and rm, but is that a useful criterion?

@carols10cents
Copy link
Member

I'm going to close this as a duplicate of #3289. Thanks!!

@matthiaskrgr
Copy link
Member

@jrmuizel I'm still working on it, but feel free to have a look already :D https://github.com/matthiaskrgr/cargo-cache/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants