-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg scripts] Simplify vcpkg_download_distfile
output handling for Asset Caching
#40945
base: master
Are you sure you want to change the base?
[vcpkg scripts] Simplify vcpkg_download_distfile
output handling for Asset Caching
#40945
Conversation
vcpkg_download_distfile
output handling for Asset Cachingvcpkg_download_distfile
output handling for Asset Caching
RESULT_VARIABLE error_code | ||
WORKING_DIRECTORY "${DOWNLOADS}" | ||
) | ||
|
||
if(NOT "${error_code}" EQUAL "0") | ||
message("${output}") | ||
z_vcpkg_download_distfile_show_proxy_and_fail("${error_code}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you confirm that this doesn't repeat error messages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed it does not repeat the error message. That said, I did find a bug with our asset caching output.
To repro ensure that x-block-origin
is not enabled, trigger an error by giving vcpkg_download_distfile
a bad URL, and try to install the package.
It will spit out:
error: Missing <pkg> and downloads are blocked by x-block-origin.
which is false.
CI failure is related to a known issue with |
This PR updates the
vcpkg_download_distfile
script to remove direct messaging and rely on output from the vcpkg executable. This change ensures that messages consider asset caching.Before:
(Example log with redundant messaging)
After:
(Example log with streamlined output that reflects asset caching)