Skip to content

How to specify exact version for port dependency #24655

Answered by autoantwort
lstipakov asked this question in Q&A

You must be logged in to vote

So the question is - how to define exact (or maximum) version for port dependency?

Overrides are the right choice, but you can only use them at the root level and not in a port. Within a port you can only use "version>=": "...". So vcpkg uses a minimum version approach.

If you could overrides in a port, you could create two port with a dependency on A where port one required version 1 and port two requires version 2. This would result in unsolvable version constraints. With the minimum versioning approach you can build any port together without getting versioning conflicts.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@lstipakov

Answer selected by lstipakov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants