-
Notifications
You must be signed in to change notification settings - Fork 965
Closed as duplicate of#988
Closed as duplicate of#988
Copy link
Labels
Description
Problem you are trying to solve
$ rustup upgrade
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2025-01-09, rust version 1.84.0 (9fc6b4312 2025-01-07)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: removing previous version of component 'cargo'
info: rolling back changes
error: could not rename component file from '/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/etc/bash_completion.d' to '/root/.rustup/tmp/_5gb26t_5aka0pr1_dir/bk'
info: checking for self-update
stable-x86_64-unknown-linux-gnu update failed - rustc 1.74.0 (79e9716c9 2023-11-13)
info: cleaning up downloads & tmp directories
Also
$ echo $?
0
So
- Error message should say, why it could not rename. Directory not found? Permission denied? Out of disk space?
- Upgrade failed, exit code should be not zero
Solution you'd like
- Amend error message with the reason why it failed
- Exit code not zero
Notes
$ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.74.0 (79e9716c9 2023-11-13)`