-
Notifications
You must be signed in to change notification settings - Fork 911
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
Rustup should always clean after itself #2202
Comments
I would really appreciate this, my main partition only has about 50 GB and rust uses 5-10 of that after installing stable, nightly, and a few docker volumes for docs.rs. Knocking thar down by 2 GB would be an enormous win :) |
Look at that, you fixed it and I didn't even notice!
Thanks so much for your hard work! |
@gnzlbg Oh dear, that really ought to be cleaning up. If you run |
Sadly I manually deleted all the files when filling this issue, so I don't have those precise files anymore to reproduce. I did run I just I should not have deleted the files so that we can reproduce, but I needed the space :( |
There's no such registry, but perhaps rustup hadn't updated itself at the point that you noted the large download waste? If you could keep an eye on it for a bit and if you can't reproduce it then decide when you feel this could be closed? |
No further updates from @gnzlbg so I'm closing this. If it happens again, a fresh issue with reproduction instructions would be appreciated. |
After a successful
rustup update
(or maybe even after each successful rustup command), theRUSTUP_HOME
directory should be in a "clean" state.Example of a non-"clean" state:
That's 2.5 Gb of useless files.
Ideally,
RUSTUP_HOME
directory,RUSTUP_HOME
directory to become cleanrustup
commands, on success, should enforce that theRUSTUP_HOME
directory is clean (e.g.rustup update
,rustup self update
, etc.) - I think we should try hard to avoid arustup clean
command, since users should not be required to know that such a command exists to avoid wasting multiple Gbs of files.The text was updated successfully, but these errors were encountered: