Do I have to specify all dependencies in both the vcpkg.json file in the project repository AND in the port? #43679
-
It's not clear from the documentation whether the vcpkg.json file in the port must specify all of a packages dependencies, as well as the vcpkg.json file in the top level of the package's actual code repository. https://learn.microsoft.com/en-us/vcpkg/concepts/ports#vcpkgjson Do we need to maintain information about all dependencies & versions in both places? Example:I have a private registry with
in
In the port for
Another question I have is about how this interacts with default and non-default registries. Package-a depends on Does package-b have to know that package-a wants to get libuv from the official vcpkg registry and list it in it's
Or will package-b use the vcpkg-configuration.json file from package-a's repository? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answering my own question:
Yes, as per this discussion: #33673 Part 2:
as per the vcpkg-configuration.json reference https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-configuration-json In this case, the better option would be to use the custom registry for specific packages, and the microsoft registry as the default one. Or add the ports we need from the main microsoft vcpkg registry to our custom one. |
Beta Was this translation helpful? Give feedback.
Answering my own question:
Part 1:
Yes, as per this discussion: #33673
Part 2:
as per the vcpkg-configuration.json reference https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-configuration-json
Only the top-level project's vcpkg-configuration.json file is used, and any packages that are not specifically mentioned in
registries
and that that are not contained within the default regsitry will fail to r…