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

component: Support installation/removal of component-target #2088

Merged
merged 2 commits into from
Oct 29, 2019

Conversation

kinnison
Copy link
Contributor

In order to reduce the surprise available when someone expects to be able to
take output of rustup component list and use it as input to rustup component add or rustup component remove we now support creation of Component
objects by attempting to split it on '-' and see if we get a component name and
valid full target triple.

Fixes: #2057

@kinnison
Copy link
Contributor Author

WHile this isn't ready yet (no tests) I'd appreciate a quick nod from @shepmaster if this is appropriate.

@kinnison
Copy link
Contributor Author

I think those tests are sufficient.

Copy link
Member

@shepmaster shepmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The functionality all seems reasonable to me! Just minor comments since I read the code anyway.

src/dist/manifest.rs Outdated Show resolved Hide resolved
In order to reduce the surprise available when someone expects to be able to
take output of `rustup component list` and use it as input to `rustup component
add` or `rustup component remove` we now support creation of `Component`
objects by attempting to split it on '-' and see if we get a component name and
valid full target triple.

Fixes: rust-lang#2057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removing components using the output of component list is a papercut
2 participants