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

Automatically clean up tmp folder #1252

Closed
alexcrichton opened this issue Sep 16, 2017 · 4 comments
Closed

Automatically clean up tmp folder #1252

alexcrichton opened this issue Sep 16, 2017 · 4 comments

Comments

@alexcrichton
Copy link
Member

I just realized I have a 10GB .rustup/tmp folder on my system full of temporary files...

@alexcrichton
Copy link
Member Author

Same for .rustup/downloads, it was 1GB large!

@senden9
Copy link

senden9 commented Dec 5, 2017

I use rustup since a few months and my tmp folder is quite small with 4KB.

$ du --summarize --human .rustup/* 
4.0K	.rustup/downloads
4.0K	.rustup/settings.toml
188K	.rustup/tmp
1.3G	.rustup/toolchains
12K	.rustup/update-hashes

Maybe a bug? Maybe rustup crashed & did not clean up after the next run?

@bgianfo
Copy link

bgianfo commented Oct 10, 2019

Just hit this today, my temp folder was 100's of MB, and my downloads folder was in 1-2 GB range...

@kinnison
Copy link
Contributor

The tmp folder should be cleanable up with a bit of a tweak. the downloads folder we have a PR in the works for. I'll actually ask if they can add the tmp dir to that too, since it is just as good a location to deal with the cleanups.

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

4 participants