Skip to content

[5.6] fix dependency resolution edge cases issues (#3985) #3997

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

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Jan 9, 2022

5.6 cherry pick of #3985

motivation: dependency resolution could be incorrect in some edge cases when a pre-release requirement is specified, and not report the issue to the user

changes:
* depedency resolustion should not assume 0.0.0 is the correct minimal requirment, instead it should use the specified version
* fix dependency term computation which used incorrect version requirement for the the parent node
* add validation at the end of package udpate API to make sure no missing packages exist after resolution, and fail the operation if such exists. this mirrors the behavior of package resolve API
* adjust tests
@tomerd tomerd added the 5.6 label Jan 9, 2022
@tomerd tomerd added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Jan 9, 2022
@tomerd
Copy link
Contributor Author

tomerd commented Jan 9, 2022

@swift-ci please test

@tomerd tomerd merged commit 482b6eb into swiftlang:release/5.6 Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants