-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cargo doesn't clean build artifacts from old nighlies #5516
Comments
Ping? |
Cargo itself can't know if a particular artifact will be used in the future or not, because one project could be build using several different Rust versions. So, some explicit user action is required to clean unnecessary artifacts, because only the user knows which artifacts are unnecessary. To that end, |
Yes, but it is annoying to clean also the compiled dependencies, etc compiled with the current rustc version. |
Can we at least have a global/local cargo config for this, perhaps on by default? I don't compile projects across compilers. I also suspect that's a pretty rare thing for most people to do aside from on CI, and we can ask Travis to flip a config for this. I just deleted a 140GB target directory, this is kinda ridiculous 😄 |
Another possible heuristic is that we can delete old files that are not currently necessary. So if there are some artifacts from another compiler that were built today, don't touch them, but delete any older ones. |
+1 I would like to keep them a bit longer though (~1 or 2 weeks) |
Duplicate of #5026 |
Nope, apparently |
This caused my disk to fill up completely.
The text was updated successfully, but these errors were encountered: