Skip to content

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

Merged
kinnison merged 2 commits intorust-lang:masterfrom
kinnison:kinnison/component-with-target
Oct 29, 2019
Merged

component: Support installation/removal of component-target#2088
kinnison merged 2 commits intorust-lang:masterfrom
kinnison:kinnison/component-with-target

Conversation

@kinnison
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

I think those tests are sufficient.

Copy link
Copy Markdown
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.

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
@kinnison kinnison force-pushed the kinnison/component-with-target branch from 4a05a5e to 72f9880 Compare October 29, 2019 21:27
@kinnison kinnison merged commit 9c7f313 into rust-lang:master Oct 29, 2019
@kinnison kinnison deleted the kinnison/component-with-target branch October 29, 2019 22:13
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