Make rustup install a true alias of rustup toolchain install.#2096
Make rustup install a true alias of rustup toolchain install.#2096ehuss wants to merge 1 commit intorust-lang:masterfrom
rustup install a true alias of rustup toolchain install.#2096Conversation
|
@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 installexactly the same asrustup toolchain install, adding the--componentand--targetflags.