mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 08:48:28 +08:00
[vcpkg] Fix install from head when no-downloads (#6653)
This commit is contained in:
parent
35d78d5f76
commit
8ad8f08836
@ -161,7 +161,7 @@ function(vcpkg_from_github)
|
||||
|
||||
# Parse the github refs response with regex.
|
||||
# TODO: use some JSON swiss-army-knife utility instead.
|
||||
file(READ "${ARCHIVE_VERSION}" _contents)
|
||||
file(READ "${downloaded_file_path}.version" _contents)
|
||||
string(REGEX MATCH "\"sha\": \"[a-f0-9]+\"" x "${_contents}")
|
||||
string(REGEX REPLACE "\"sha\": \"([a-f0-9]+)\"" "\\1" _version ${x})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user