vcpkg export: Is it safe to merge exported packages together? #18333
Unanswered
marcbertola
asked this question in
Q&A
Replies: 1 comment
-
I merged exported package to vcpkg directory on another machine and no matter to find_package but |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Scenario 1
Alice builds a number of packages for a given triplet:
vcpkg install --triplet x64-triplet-1 pkg1 pkg2 pkg3
For whatever reason, Alice decides to export the packages individually:
vcpkg export --zip --triplet x64-triplet-1 pkg1
vcpkg export --zip --triplet x64-triplet-1 pkg2
vcpkg export --zip --triplet x64-triplet-1 pkg3
(I'm assuming here that nothing is changed in the vcpkg repo between the
vcpkg export
calls)Question 1: Bob wants to use these exported packages. Is it safe for Bob to extract the contents of each zip file and merge them together?
(by "extract", I mean rename the top-level
vcpkg-export-date-time
directory in the .zip archive to a common name for all)Scenario 2
Alice builds a number packages for multiple triplets:
vcpkg install --triplet x64-triplet-1 pkg1 pkg2 pkg3
vcpkg install --triplet x64-triplet-2 pkg1 pkg2 pkg3
Alice then exports the packages together, per triplet:
vcpkg export --zip --triplet x64-triplet-1 pkg1 pkg2 pkg3
vcpkg export --zip --triplet x64-triplet-2 pkg1 pkg2 pkg3
Question 2: If Bob wants to work with both of these triplets, is it safe to merge the contents exported zip files, as above?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions