-
Notifications
You must be signed in to change notification settings - Fork 893
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
Make rustup install
a true alias of rustup toolchain install
.
#2096
Conversation
@lzutao and I were a bit confused when Another idea is to make |
|
☔ The latest upstream changes (presumably #2097) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm tempted to make it so that |
I think for each deprecated commands, a warning should be display whenver it is used |
@lzutao I agree, I'm going to see if I can write such a thing tonight, and go through our CLI and annotate any deprecated stuff so that we get a good warning with help for the user. |
I've pushed #2100 which I'd like to see used instead of this. Are you OK with that? |
Not sure if this question is directed at me. I think with deprecating, I would be concerned that these are often used in CI where nobody will see the warnings. Also, I'm more swayed by the argument that "rustup install" can be confusing or ambiguous (does it install a toolchain, component, or target?), and less with the maintenance burden of keeping them in sync (which this PR does). I don't have a strong preference either way, they both have their pros and cons. I just suggest, if it is deprecated, to make a good effort to scrub references to it. |
Scrubbing references makes sense. I will set-to looking at what needs to be done to amend all of those. The ambiguity point also stands, I'd not though in that mode because I approach |
Or we could totally remove these deprecated aliases, and just suggest which |
@lzutao I think the rough approach should be:
I'd rather not break people's CI without giving them at least a little while to update first. |
With the tracking issue open, I'm closing this PR. Thanks again everyone, and hopefully we can work together to find and correct all the bad examples before we release 1.21.0 |
This makes
rustup install
exactly the same asrustup toolchain install
, adding the--component
and--target
flags.