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

[vcpkg] Correctly record default feature list in BinaryParagraphs. Fixes #10678. #11085

Merged
merged 2 commits into from
Apr 29, 2020

Conversation

ras0219-msft
Copy link
Contributor

When determining the precise list of features requested by a particular package reference (FullPackageSpec in the code), the resolution algorithm must sometimes consult the list of default dependencies for the already installed package. This is because a reference such as cpprestsdk[compression] refers to the union of cpprestsdk's declared default features and the compression feature. In the case of depending upon an already installed package, we resolve defaults to the installed package's list until that package has been determined to need rebuilding.

Unfortunately, we were silently not recording the list of defaults for packages, which caused all references to default features in already installed packages to misbehave and not actually require any features.

  • What does your PR fix?

Fixes an underlying bug discovered in issue #10678. Users will need to rebuild all packages with default features to fully fix the problem. Requires also merging #11082 for a full resolution of @Ghabry's issue.

  • Which triplets are supported/not supported? Have you updated the CI baseline?

N/A

Yes

@ras0219-msft ras0219-msft added the info:internal This PR or Issue was filed by the vcpkg team. label Apr 29, 2020
@ras0219-msft ras0219-msft self-assigned this Apr 29, 2020
@cbezault cbezault merged commit 9b91a53 into microsoft:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants