-
Notifications
You must be signed in to change notification settings - Fork 945
Update to most recent viable nightly #1997
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
Conversation
860a370
to
9a056f7
Compare
As an anecdotal observation, the code for mocking a |
93aa55d
to
e2da58a
Compare
Cleanup in #1998 |
This is ace. Thank you very much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from my concern over missing nightlies and a possible bit of reformatting, this looks like a nice simple elegant solution to the problem.
Previously, if the user had components installed on `nightly` which were not available for the latest nightly, `rustup update` would not update the user's nightly at all. With this patch, rustup will try progressively older nightlies until it finds a nightly that supports all the components the user has installed for their current nightly. Fixes rust-lang#1628. Makes progress towards rust-lang#1501. Fixes the underlying issue in rust-lang#1676.
08bc94d
to
461bcb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 I'll merge once I have a confirm from CI.
When will it be available for |
@vi When we're ready to release 1.20.0 -- We have active tester requests out right now, and we may put further requests out on the way to 1.20.0. Once we're good, we'll release. I'd guess at a small (one or two) number of weeks. |
@Arnavion one option is to check https://rust-lang-nursery.github.io/rust-toolstate/ manually and not update if not all your components are there... |
@Arnavion I'm not sure I follow? The old behavior was to simply fail the update. If you mean to force the update, then you should be able to pass |
@jonhoo The new behavior, AFAICT from your change, is that Yes, |
@jonhoo, I was reminded of this great work today when I did a |
Previously, if the user had components installed on
nightly
which were not available for the latest nightly,rustup update
would not update the user's nightly at all. With this patch, rustup will try progressively older nightlies until it finds a nightly that supports all the components the user has installed for their current nightly.Fixes #1628.
Makes progress towards #1501.
Fixes the underlying issue in #1676.