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

implement vcpkg add port #301

Merged
merged 5 commits into from
Jan 11, 2022

Conversation

autoantwort
Copy link
Contributor

No description provided.

Copy link
Contributor

@strega-nil strega-nil left a comment

Choose a reason for hiding this comment

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

Other than localization (and the else if) looks really good to me!

@strega-nil-ms
Copy link
Contributor

LGTM! I just want @ras0219-msft to take a look first, so we'll finish taking a look in the new year.

@strega-nil-ms strega-nil-ms added the requires:discussion This PR requires discussion of the correct way forward label Dec 29, 2021
@strega-nil-ms strega-nil-ms force-pushed the implement-vcpkg-add-port branch from 660938a to 773792e Compare December 29, 2021 19:39
@BillyONeal BillyONeal self-assigned this Jan 6, 2022
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

Wow, thanks for beating me to the punch!

Co-authored-by: Robert Schumacher <[email protected]>
@strega-nil-ms strega-nil-ms added requires:author-response and removed requires:discussion This PR requires discussion of the correct way forward labels Jan 6, 2022
@BillyONeal
Copy link
Member

Thank you so much for this new feature! :D

@BillyONeal BillyONeal merged commit 2894c9a into microsoft:main Jan 11, 2022
@autoantwort autoantwort deleted the implement-vcpkg-add-port branch February 5, 2022 18:44
BillyONeal added a commit to BillyONeal/vcpkg-tool that referenced this pull request Mar 5, 2022
 microsoft#301 broke add artifact by flipping the sense of check_exit: it is "ensure that this is true" not "fail when this is true".

Drivebys: `add port` was also broken because it would try to add a port named "port".

60: Fix the flipped sense.
78: Replace fmap with a for loop starting at 1 to skip the selector.
80: Use Expected::value_or_exit which was equivalent to the previous behavior of printing the message followed by exit_fail.
84: Similarly combine printing msgAddTripletExpressionNotAllowed and exit_failure into msg_exit_with_message.
126: Similarly, write_contents' default behavior of exiting and printing the path in question with VCPKG_LINE_INFO was equivalent to checking error_code
BillyONeal added a commit that referenced this pull request Mar 7, 2022
…#415)

* Fix add artifact regression "you can only add one artifact at a time"

 #301 broke add artifact by flipping the sense of check_exit: it is "ensure that this is true" not "fail when this is true".

Drivebys: `add port` was also broken because it would try to add a port named "port".

60: Fix the flipped sense.
78: Replace fmap with a for loop starting at 1 to skip the selector.
80: Use Expected::value_or_exit which was equivalent to the previous behavior of printing the message followed by exit_fail.
84: Similarly combine printing msgAddTripletExpressionNotAllowed and exit_failure into msg_exit_with_message.
126: Similarly, write_contents' default behavior of exiting and printing the path in question with VCPKG_LINE_INFO was equivalent to checking error_code

* Regenerate localization.
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.

5 participants