Skip to content

Removing components using the output of component list is a papercut #2057

@shepmaster

Description

@shepmaster

Describe the problem you are trying to solve

Doing a bit of cleanup, I check what components I have installed:

$ rustup component list --installed
rust-std-wasm32-unknown-emscripten

Oh, I don't need that component right now, let's remove it!

$ rustup component remove rust-std-wasm32-unknown-emscripten
error: toolchain 'nightly-x86_64-apple-darwin' does not contain component 'rust-std-wasm32-unknown-emscripten' for target 'x86_64-apple-darwin'

Ooooof. It's actually:

$ rustup component remove rust-std --target wasm32-unknown-emscripten

Describe the solution you'd like

One solution would be to support rustup component remove $component-$target. Another would be to split up the output so that it's more obvious that those are separate pieces:

rust-std (wasm32-unknown-emscripten)

Notes

This is something that I've noticed for a while, so there's no immediate urgency on it, I just do some spring cleaning every few months and run into it. I might be affected more than most due to answering random Stack Overflow questions.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions