-
Notifications
You must be signed in to change notification settings - Fork 895
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
"directory does not exist" errors when rustup update
#3230
Comments
Did you manually delete items from the toolchain directory? If so, consider using That said, we should be more robust about dealing with corrupt content on disk. (Edited - I see the steps now) |
I"m going to close this. The work for dealing with concurrent use and with corrupt contents (#2417) is sufficient I think |
works for me. |
still have this issue when update rust 1.77.2:
|
To clarify: this issue was not closed on resolution, but on duplication. |
Problem
when
rustup update
, the following errors occur:after I mkdir these directories, another error occurs:
after I creating an empty file (note: not directory)
LICENSE-MIT
, other errors occur:then I must create empty
README.md
,COPYRIGHT
andLICENSE-APACHE
files (note: they're not directory as the error says).In the end,
rustup update
works OK.Steps
~\.rustup\toolchains\stable-x86_64-unknown-linux-gnu\share\doc
rustup update
Note: I‘m really not realized in the first time that deleting this directory will stop rustup from runing. Contents in the directory (share/doc/rust) are all API documents (.html) and license & readme files, and I just want to save space of my SSD.
Possible Solution(s)
Ignore "file/directory not exist" errors when removing (old) components, only print a warning, and go on running.
Notes
No response
Rustup version
The text was updated successfully, but these errors were encountered: