Closed
Description
I expect this to work:
RUSTUP_UPDATE_ROOT=https://dev-static.rust-lang.org/rustup/archive/1.2.0 rustup self update
but it does not:
info: checking for self-updates
error: could not download file from 'https://dev-static.rust-lang.org/rustup/archive/1.2.0/release-stable.toml' to '/tmp/rustup-update.6RjOKF0hq6Ji/release-stable.toml'
info: caused by: http request returned an unsuccessful status code: 404
I suspect it used to but broke once the 'release-stable.toml' file was added.
Probably just use another environment variable like RUSTUP_UPDATE_VERSION
, which circumvents the 'release-stable.toml' file and appends the appropriate archive path to the update root.
This could be useful in the case of deploying a bad rustup (where the updater still works).