-
Notifications
You must be signed in to change notification settings - Fork 882
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
Downgrade nightly when adding component #2146
Comments
Unfortunately @BeniCheni grew too busy to continue work on this issue, thus it is open for new contributors once more. Information on one possible approach (though Ben decided he didn't like it in the end) is in #2176 and support is available on Discord in the |
Sometimes, not all components are available in any given nightly, which causes errors such as #24. Therefore, we use the `--allow-downgrade` flag to downgrade the version if rustfmt is not available for this or any newer nightly. In the future, `rustup component add` will have a `--allow-downgrade` flag (see rust-lang/rustup#2146) we can use instead of this work-around.
Sometimes, not all components are available in any given nightly, which causes errors such as #24. Therefore, we use the `--allow-downgrade` flag to downgrade the version if rustfmt is not available for this or any newer nightly. In the future, `rustup component add` will have a `--allow-downgrade` flag (see rust-lang/rustup#2146) we can use instead of this work-around.
This turns out to be moderately hard given where the auto-downgrade logic is currently. I don't want to block a 1.22 release on this. |
What about calling |
It would indeed need to prevent upgrade, which would complicate the install-from-dist interface again :( |
Describe the problem you are trying to solve
I have a nightly installed and want to add a component that is not available for this or any newer nightly.
Describe the solution you'd like
With #2126 we have
rustup toolchain install --allow-downgrade
; this issue would be solved by adding the parallelrustup component add --allow-downgrade
.Notes
Currently available work-around:
rustup toolchain install $already_installed_channel --allow-downgrade -c added_component_name
The text was updated successfully, but these errors were encountered: