-
Notifications
You must be signed in to change notification settings - Fork 892
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
Output the previous version of a toolchain when it is updated #2143
Conversation
21806e1
to
08370ae
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.
I feel like the work you did in fn install()
in src/toolchain.rs
could be simplified -- the exists
boolean and the previous_version
variable could be simplified into a single previous_version
where instead of exists
you have previous_version.is_some()
-- However this isn't necessary right now.
If you want to clean up a little, then let me know, if you'd rather not attempt that now then that's fine too -- let me know that and I'll move on.
Good point! I've made that change. Let me know if it looks good and I'll squash the commits. |
The build failure looks to be a filesystem error related to
|
Yep, that's a transient failure which only ever seems to manifest in CI, making it super-hard for me to track down. |
Assuming the CI passes, please rebase/squash ready for merge. Ensure your commit message is clean too, rebase sometimes splats them all together nastily. 👍 |
0a20521
to
48736f5
Compare
This change modifies the cli output of `rustup update` to display the previous version of rustc for toolchains that are updated: $ rustup update --snip-- stable-x86_64-apple-darwin unchanged - rustc 1.39.0 (4560ea788 2019-11-04) nightly-x86_64-apple-darwin updated - rustc 1.41.0-nightly (7afe6d9d1 2019-12-03) (from rustc 1.40.0-nightly (22bc9e1d9 2019-09-30)) Closes rust-lang#2110.
48736f5
to
8a0b4ae
Compare
Done and done. |
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.
👍
This change modifies the cli output of
rustup update
to display the previous version of rustc for toolchains that are updated.Before:
After:
Fixes #2110.