Closed seanmiddleditch closed 9 months ago
Please propose a pull request
There seems to be code here, but I don't see a pull request for it: https://github.com/seanmiddleditch/vcpkg-action
I recently ran into this problem described by https://github.com/microsoft/vcpkg/issues/25349. That fork fixed it for me.
Given manifest mode with a
vcpkg.json
file using the August 2023 vcpkg baseline, but requiring a package only available in newer vcpkg commits (capnproto 1.0.1):And a GitHub Action requesting
revision: master
:Results in the following error:
This appears to be due to the use of shallow git fetch (
fetch-depth: 1
in thecheckout-vcpkg
step). I disabled shallow fetch in a clone of this action and verified that it resolves the issue for me.A proper fix that better fits the intent of being optimal when using the latest release may be to add an action option to disable shallow fetch, or perhaps to automatically disable it if the
revision
option is provided.