-
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
rustup component remove component-NOT-TOOLCHAIN-TARGET errors #3166
Comments
hmm so I totally agree with the motivation here; a path to fixing it would be to parse the target from the output, and infer target when not supplied. |
rustup components
should hint towards using --target
Is there a rule to infer the target from the list? @rustbot claim |
In the component remove function, it is supposed to handle |
|
Ran into the same thing; was very confused. |
@kadiwa4 @cyqsimon A new beta release is available, would you mind trying it out? |
All works as expected now as far as I can tell. Thank you for the great work! |
I saw the fix of this issue was added into milestone 1.27.1. Execute:
Output:
But the following command works well:
|
@yangby-cryptape Your case is a bit particular since it's related to a renamed component (#3578). For the moment being, I'll try to investigate further. |
Problem you are trying to solve
I ran
rustup component list --installed
and saw that I had the componentrust-std-wasm32-unknown-unknown
installed, which I wanted to delete. I thought that I could simply copy-paste the component name into theremove
command like this:However, this doesn't work with
remove
. I got the following unhelpful error message:(Also the last line doesn't make sense because I'm trying to uninstall something here, not install it.)
Solution you'd like
The command that actually works is:
I would like it if rustup told me that. You could assume that the component names which are output by
list
can also be passed back into rustup as a component name.Notes
Version 1.25.1
The text was updated successfully, but these errors were encountered: