-
Notifications
You must be signed in to change notification settings - Fork 24
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
Temporary directory doesn't seem to be cleaned after installation / update #340
Labels
bug
Something isn't working
Comments
Thanks for reporting the issue! I think I've found the issue, tomorrow I will do some further testing an open a PR for it. |
Merged
Hi! Just created #344, do you mind trying the fix proposed in the PR? cargo uninstall espup
cargo install espup --git https://github.com/SergioGasquez/espup --branch fix/tmp-folders
espup install |
I can confirm that this fixes my issue. It will still leave the temporary directory there if the process is interrupted with Ctrl^C , but the main case is fixed. |
Thanks for the testing! |
Thanks for taking care of this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
tempfile doesn't seem to automatically clear the directory it creates after updating or installing the toolchain.
I get a lot of
/tmp/.tmpXXXXXX/
directories that are used by espup to store the downloaded assets. Each one is about 1.2Gb, so changing frequently between toolchains can result in a clogged up/tmp/
quite rapidly.To Reproduce
Steps to reproduce the behavior:
espup install -v 1.70.0.0
/tmp/.tmpXXXXXX/
it creates, in the logsespup update -v 1.72.0.0
/tmp/.tmpXXXXXX/
it creates, in the logs/tmp/
, both folders are still present after installation.Expected behavior
Directories should be cleaned when the program ends or crash.
See resource leaking in tempfile
Screenshots
N/A
Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: