Open LecrisUT opened 1 week ago
@LecrisUT this should be a regression introduced recently in vcpkg, you may find out if you try using an older version of vpkg: it would be super helpful if you can identify in which version this occurred.
To work around this, you may try removing VCPKG_ROOT
entry from the env variables, e.g. like
uses: run-cmake
env:
VCPKG_ROOT:
That way run-cmake
does not attempt to set up the environment using the vcpkg env
command (see the last block at the bottom of the flowchart).
That might be difficult because I can't run run-vcpkg
because I don't have a vcpkg.json
. What I was considering is to have a try...catch
around the first vcpkg
command and if the error message contains "Could not locate a manifest" or has an equivalent exit code, than move on aa if there is no vcpkg support. Afaiu the only check is at VCPKG_ROOT
, but maybe an additional check or even a glob check for **/vcpkg.json
would be helpful here.
I have encountered this issue in: https://github.com/spglib/spglib/actions/runs/9647881847/job/26607773265
I was trying to update
run-cmake
tov10
, but onwindoes-latest
(related to the fix inv10.6
) I get an error of:The project does not have any
vcpkg.json
yet as I am still thinking on how to package this. Any possibilities to make it fallback when novcpkg.json
is found?