-
Notifications
You must be signed in to change notification settings - Fork 799
Open
Labels
Description
Because this image shallow-clones vcpkg, it's difficult to get versioning working. Specifically, any useful value of builtin-baseline will fail to sync, and packages will subsequently not be found.
I'm working towards a workaround on this, that looks something like:
- During image build, parse
vcpkg.jsonwith a tool like jq to extract the value ofbuiltin-baselinehash. - Derive the commit date of the hash with
git show -s --format=%ci - Sync the image's
vcpkgrepo withgit fetch --shallow-since=<date>
This is the best I can think of - I don't love bringing in a dependency like jq, and it seems bizarre (although possibly intended) to manipulate the vcpkg repository during such a straightforward use case. I'd love to get any feedback on this approach and see if there's a simpler path forward.