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

Allow adding the host as a target. #1219

Closed
wants to merge 1 commit into from

Conversation

rillian
Copy link
Contributor

@rillian rillian commented Jul 31, 2017

The rustup target add subcommand treated the current host
as an argument differently from any other, issuing an
AddingRequiredComponent error result.

This made it difficult for scripts to ensure a consistent target
set since one could not just say rustup target add $target1 $target2
without first checking whether $target1 or $target2 happen
to match the host triplet and filtering that target out.

Instead, allow adding a required component and treat it like
any other already-installed extension. This involves some
extra effort to de-duplicate the list of components to avoid
printing the 'up to date' message more than once.

The `rustup target add` subcommand treated the current host
as an argument differently from any other, issuing an
`AddingRequiredComponent` error result.

This made it difficult for scripts to ensure a consistent target
set since one could not just say `rustup target add $target1 $target2`
without first checking whether `$target1` or `$target2` happen
to match the host triplet and filtering that target out.

Instead, allow adding a required component and treat it like
any other already-installed extension. This involves some
extra effort to de-duplicate the list of components to avoid
printing the 'up to date' message more than once.
@alexcrichton
Copy link
Member

@bors: r+

Looks good to me, and sorry for the delay!

@bors
Copy link
Contributor

bors commented Aug 12, 2017

📌 Commit 9ee11f7 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Aug 13, 2017

⌛ Testing commit 9ee11f7 with merge da2aef6...

bors added a commit that referenced this pull request Aug 13, 2017
Allow adding the host as a target.

The `rustup target add` subcommand treated the current host
as an argument differently from any other, issuing an
`AddingRequiredComponent` error result.

This made it difficult for scripts to ensure a consistent target
set since one could not just say `rustup target add $target1 $target2`
without first checking whether `$target1` or `$target2` happen
to match the host triplet and filtering that target out.

Instead, allow adding a required component and treat it like
any other already-installed extension. This involves some
extra effort to de-duplicate the list of components to avoid
printing the 'up to date' message more than once.
@bors
Copy link
Contributor

bors commented Aug 13, 2017

💔 Test failed - status-appveyor

@nrc
Copy link
Member

nrc commented Aug 17, 2017

Failing a single test: add_extension_that_is_required_component

@bors
Copy link
Contributor

bors commented Sep 21, 2017

☔ The latest upstream changes (presumably #1255) made this pull request unmergeable. Please resolve the merge conflicts.

@Diggsey
Copy link
Contributor

Diggsey commented May 27, 2018

Closing due to inactivity - please feel feel free to open a new PR if you wish to continue working on this feature!

@Diggsey Diggsey closed this May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants