Skip to content
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

Suggest another toolchain when removing a component/target unavailable to the current toolchain #4164

Open
FlareFlo opened this issue Jan 23, 2025 · 2 comments

Comments

@FlareFlo
Copy link

Problem you are trying to solve

  1. rustup update fails (unrelated to issue)
    Image
  2. rustup target remove wasm32-wasi fails
    Image
  3. rustup +target remove wasm32-wasi succeeds, as the default toolchain was nightly as specified in .rustup/settings.toml

Solution you'd like

Rustup could search and suggest targets on other versions when the default does not have the target

Notes

No response

@FlareFlo
Copy link
Author

This issue is not a dupe of #4099
Any other target has the same issue, i just happened to use wasm32-wasi as mentioned in the problem description

Image

@rami3l
Copy link
Member

rami3l commented Jan 24, 2025

This issue is not a dupe of #4099 Any other target has the same issue, i just happened to use wasm32-wasi as mentioned in the problem description

Image

@FlareFlo My apologies.

IMO your original issue in particular does fall into the larger category of our properly informing the users of a target name change. However, WRT potential misoperations such as trying to remove a component installed only in another toolchain, I do think that will be a possible aspect to be improved.

I've adjusted the title according to what I think you was trying to address. Please let me know if you think that is inaccurate.

@rami3l rami3l reopened this Jan 24, 2025
@rami3l rami3l changed the title Suggest alternative version when attempting to remove target Suggest another toolchain when removing a component unavailable to the current toolchain Jan 24, 2025
@rami3l rami3l changed the title Suggest another toolchain when removing a component unavailable to the current toolchain Suggest another toolchain when removing a component/target unavailable to the current toolchain Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants