[vcpkg_download_distfile] fix download while in manifest mode (#18283)

When vcpkg detects a manifest root, it attempts to take a filesystem lock;
this is a bug in `x-download`.
We fix this bug by disabling manifests.
This commit is contained in:
nicole mazzuca 2021-06-05 09:45:39 -07:00 committed by GitHub
parent 751fc199af
commit b2544fd780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,13 @@ function(vcpkg_download_distfile VAR)
endforeach()
endif()
vcpkg_execute_in_download_mode(
COMMAND "$ENV{VCPKG_COMMAND}" x-download "${downloaded_file_path}" "${vcpkg_download_distfile_SHA512}" ${urls} ${request_headers} --debug
COMMAND "$ENV{VCPKG_COMMAND}" x-download
"${downloaded_file_path}"
"${vcpkg_download_distfile_SHA512}"
${urls}
${request_headers}
--debug
--feature-flags=-manifests # there's a bug in vcpkg x-download when it finds a manifest-root
OUTPUT_VARIABLE output
ERROR_VARIABLE output
RESULT_VARIABLE failure