-
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
Find and correct all places recommending rustup install
and rustup uninstall
#2148
Comments
Please don't do this -- this makes rustup less easy to use! Just check the comments of https://www.reddit.com/r/rust/comments/e7rer9/we_need_your_help_before_rustup_1210_can_be/ Can someone explain what the main reason is for this change? |
IMO it doesn't make any sense.
Either:
I find that separating toolchain-related commands (some under |
Updated README to reflect deprecation of rustup install This PR from the rustup repository brought me here: rust-lang/rustup#2148 TL;DR With rustup 1.21.0 `rustup install` and `rustup uninstall` are being deprecated in favor of `rustup toolchain install` and `rustup toolchain uninstall`. There's plenty of code/documentation out there that needs to be updated to reflect this. Thought It would be cool to help, however small the change may be. :) Keep up the great work!
Updated CI config to reflect deprecation of rustup uninstall In the same spirit as #1110 😄 This PR from the rustup repository brought me here: rust-lang/rustup#2148 TL;DR With rustup 1.21.0 `rustup install` and `rustup uninstall` are being deprecated in favor of `rustup toolchain install` and `rustup toolchain uninstall`. There's plenty of code/documentation out there that needs to be updated to reflect this. Thought It would be cool to help, however small the change may be. :) Keep up the great work!
I would encourage careful deliberation about actually removing these commands. Maybe it is best to actively discourage their use, in the hopes of removing them someday, though I am not sure. I am doubtful about removing them completely in the near term. These commands are commonly used, are possibly more intuitive than the alternative, and have effectively no maintenance burden. Since rustup is used by nearly the entire rust community, any disruption it causes will have a negative effect on goodwill. Some tools need to "just work", and sometimes have to carry backwards-compatibility baggage to do so. |
A tool should never never take away a feature that isn't a significant bug. It is very simple. If you teach users that your tool breaks when you update, they will not update. |
Rather than implementing |
For those coming here to ask about stopping the removal of the commands -- it's very likely they will remain deprecated (and emitting a warning) for some time because yes, it would be madness to remove them too quickly. I quite like @kennytm 's idea of aliases, that'd be a very neat way to support these without the complexity inherent in multiple pathways to the same internal behaviour which is what we have right now. Part of the rationale behind moving away from toolchain management commands not being under |
2504: Use rustup toolchain install instead of rustup install r=matklad a=edwin0cheng `rustup install` and `rustup uninstall` are going to be deprecated in rustup 1.21.0 See rust-lang/rustup#2148 and https://www.reddit.com/r/rust/comments/e7rer9/we_need_your_help_before_rustup_1210_can_be/ Co-authored-by: Edwin Cheng <[email protected]>
While I see why this would have been a good idea from the start, it is I think too late now. As you say, huge numbers of physical books have been sold with "rustup install". They can't be "fixed". Google for "rustup install" and you can find thousands of links that need fixing, while "rustup toolchain install" is on only a tiny fraction of pages. Is not maintaining "rustup install" worth fixing all these guides, and breaking the ones which inevitably won't be fixed, including physical books? |
Even if we want Of the currently documented by I fully agree that So, I guess I'd argue this isn't a technical issue, but a social one. Especially with the r/rust post, it kind of felt like "hey, this thing everyone's learned to use? It was a mistake and we're removing it." I think the response clearly indicates there's a lot of desire for the alias to stay, so it'd "just" be a matter of saying "ok, it stays, as an alias for the proper Even if |
@ChrisJefferson your point about printed books is good. I was not proposing removing the command at all, but I can see that new users might be put off by a warning when they use it. This point, along with the surprising (to me, but likely not to others) pushback on the deprecation means that I'm considering changing the warning to a verbose info that things might not behave like the @CAD97 Thank you for opening clap-rs/clap#1603 -- that would indeed solve the aliasing issue nicely for us. I still want all the online docs updating to the true command. I've opened #2149 to track dealing with the above warning demotion if anyone would like to submit a PR against it. |
@kinnison Thank you for changing your mind |
rust-lang/rustup#2148 Signed-off-by: zakaluka <[email protected]>
rust-lang/rustup#2148 Signed-off-by: zakaluka <[email protected]>
Because of #2149 I've taken this out of the 1.21.0 milestone, unblocking the release. |
We want to deprecate
rustup install
andrustup uninstall
in 1.21.0 -- as such as indicated in #2096 (comment) we need to find and correct anywhere major which recommends the use of these deprecated interfaces.NOTE Our ideal outcome is that the
rustup install
andrustup uninstall
CLI API remains available into the future as a pure alias torustup toolchain XXX
which currently due to limitations inclap
it is not.ALSO NOTE We want the "correct" CLI API documented, so this work remains wanted.
FINALLY With #2149 we intend to not emit a warning but rather only verbose indicators that the current
rustup install
andrustup uninstall
may not behave exactly as therustup toolchain XXX
interface and that will change when the alias work is done.This issue is meant to track that documentation fixup work:
Until all those (and any further high profile instances) are resolved, we should not release 1.21.0
If you find new instances of
rustup install
andrustup uninstall
in high profile documentation, please comment below so we can track it. Ditto if you file a PR to get that fixed to userustup toolchain install
etc, then please comment so that we can track the PR.The text was updated successfully, but these errors were encountered: