mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-06 09:13:28 +08:00
[vcpkg_from_github] Fix parse error on OSX (#20650)
This commit is contained in:
parent
681e307e10
commit
b8c39998ea
@ -160,7 +160,7 @@ function(vcpkg_from_github)
|
||||
# Parse the github refs response with regex.
|
||||
# TODO: add json-pointer support to vcpkg
|
||||
file(READ "${archive_version}" version_contents)
|
||||
if(NOT version_contents MATCHES [["sha":"([a-f0-9]+)"]])
|
||||
if(NOT version_contents MATCHES [["sha":(\ *)"([a-f0-9]+)"]])
|
||||
message(FATAL_ERROR "Failed to parse API response from '${version_url}':
|
||||
|
||||
${version_contents}
|
||||
|
Loading…
Reference in New Issue
Block a user