-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Print version diff for rust and cargo since last rustup.sh invocaction #18485
Conversation
I think the "Went from version:" bit is certainly useful, however, I am not sure about the diff URL. For casual users of rustc I wouldn't expect the diff between two versions of the compiler/package manager to be of much use. I also think "Rust is ready to roll." should follow everything else. |
Seems like a useful feature, but I think I agree about the diff link - it's pretty specialized. The order of installation is pre-existing and I don't think we need to change it here, but yes that is a pet peeve of mine too. It's intended to be fixed as part of #16456 but we could do a follow up to fix it in rustup.sh. The only reason I haven't done it before is that it's conceptually strange to for cargo (which is unusable without rustc) to be installed before rustc. |
Note that even if this lands it has to be deployed manually. |
Oh, I also might prefer to have the version notice before the 'ready to roll' message. Ideally - as long as we're being cute - I prefer 'Rust is ready to roll' be the last thing printed. Get's you pumped up for some Rust! |
In that case, these version messages would need to be added to install.sh in this repo and cargo, which seems like the appropriate place for them anyway. |
Sorry for all the spam. If these messages go into install.sh that adds new requirements to the future combined installer. Haven't thought about the impact. |
I agree with basically all of @brson's comments, |
Thanks for the feedback. I'm happy to move this into the install scripts if people want it. Re: the comment on the diff URL potentially being too specialized and not useful for casual rust users I'd encourage you to actually visit one of the URLs if you haven't: 1652a1f...15dd90b Can I get a few more comments as to whether or not we should show a github diff URL? |
@jakerr Indeed, I should have clicked on the link! As you pointed out it is more than a diff but I still think it is rather unapproachable to most present and future users of Rust. It is certainly not easy to navigate that list to learn what had changed in the language in between two versions of the compiler. If we continuously maintained |
@jakub- No worries! That's a fair assessment. I find the github diff link very useful, but it's probably because I follow the project quite closely so a quick scan of the commits is enough; but I think you're right and I'm probably not a typical user. |
…_braces-to-use-SyntaxFactory feat: convert add_braces to SyntaxFactory SyntaxEditor abstraction
I've been using this patch on my local rustup.sh for sometime and quite like it as a way to see what has changed since my last update.
The prevailing style in this file seems to be 8 space indent in condition bodies, 4 elsewhere.
Though I'm unfamiliar with that style I tried to match it.
Also I'm no bash guru so please give a review before accepting 😅
The output looks like this: