Closed as not planned
Closed as not planned
Description
If I rustup target add x86_64-unknown-linux-gnu
on a x86_64-apple-darwin host, a component is also installed, namely: rust-std-x86_64-unknown-linux-gnu.
The usability issue arrives when you try to rustup component remove rust-std-x86_64-unknown-linux-gnu
. Which will throw the following error:
error: toolchain 'stable-x86_64-apple-darwin' does not contain component 'rust-std-x86_64-unknown-linux-gnu' for target 'x86_64-apple-darwin'
Removing that component is probably impossible (from all of the methods I tried) and the only thing that works is removing the target: rustup target remove x86_64-unknown-linux-gnu
which also removes its components.
To improve usability, a message could accompany the error above:
"You are on a x86_64-apple-darwin system. Try rustup target add x86_64-unknown-linux-gnu
instead."
Or something along those lines.
Thank you for rustup
. It is an amazing tool.
Metadata
Metadata
Assignees
Labels
No labels