Replies: 6 comments
-
Looking a bit more, it seems export works similarly to install, you have to specify each port and triplet. I really just want to create an export of everything I have installed in one go - is this not supported? |
Beta Was this translation helpful? Give feedback.
-
We don't support export muti targets now. |
Beta Was this translation helpful? Give feedback.
-
@JackBoosY it seems this might be what we want but after reading that page and the more up to date https://github.com/microsoft/vcpkg/blob/master/docs/users/binarycaching.md I don't see how to use the cached files. Looking in archives I don't know what I expected to see, but it is seemingly a load of folders each containing a few archives (I think one per port/triplet combination or something): The one thing the docs don't seem to say is what I do with all this. It's currently on my build machine, and I want to use it on my development machine. This seems to be the CI -> Developer user story but there is no mention how to consume these caches on my dev-box. I found this blog post which again explains the concept nicely and how to generate caches, but not how to consume them. https://devblogs.microsoft.com/cppblog/vcpkg-accelerate-your-team-development-environment-with-binary-caching-and-manifests/ I get the impression it is very trivial but let's say my cache is in |
Beta Was this translation helpful? Give feedback.
-
Well, you use them the same way you generate them.
|
Beta Was this translation helpful? Give feedback.
-
@Osyotr so I would still need to run vcpkg on my dev-box will, what, copy all those remote files into my local vcpkg\installed directory then they're used as normal? |
Beta Was this translation helpful? Give feedback.
-
Yep. When you run |
Beta Was this translation helpful? Give feedback.
-
I have read about export (https://devblogs.microsoft.com/cppblog/vcpkg-introducing-export-command/) but I do not wish to have developers install a .nuget. I want them to use vcpkg mirroring our build-server, but not have to build everything themselves. This way their setup better mirrors the build machine.
Reading https://vcpkg.readthedocs.io/en/latest/users/integration/#export-command it mentions:
Does that mean I can use the following process:
I have run into issues before trying to hack file-structure so I'd like to be clear if this will work properly... if a developer then wants to install a new port on their PC, or rebuild one that was exported, will this work? Our full vcpkg install now takes several hours so every time I miss something and redo it is painful :)
For that matter, can I just copy \vcpkg\installed dir between machines? Is this different to exporting raw?
Beta Was this translation helpful? Give feedback.
All reactions