Uh oh!
There was an error while loading. Please reload this page.
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 into
rustup install a true alias of rustup toolchain install.#2096Conversation
ehuss
commented
Oct 29, 2019
@lzutao and I were a bit confused when Another idea is to make |
kinnison
commented
Oct 29, 2019
|
bors
commented
Oct 29, 2019
☔ The latest upstream changes (presumably #2097) made this pull request unmergeable. Please resolve the merge conflicts. |
kinnison
commented
Oct 29, 2019
I'm tempted to make it so that |
I think for each deprecated commands, a warning should be display whenver it is used |
kinnison
commented
Oct 30, 2019
@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. |
kinnison
commented
Oct 30, 2019
I've pushed #2100 which I'd like to see used instead of this. Are you OK with that? |
ehuss
commented
Nov 1, 2019
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. |
kinnison
commented
Nov 1, 2019
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 |
tesuji
commented
Nov 1, 2019
Or we could totally remove these deprecated aliases, and just suggest which |
kinnison
commented
Nov 3, 2019
@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. |
kinnison
commented
Dec 8, 2019
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.