Skip to content
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

Fix download error bug #1513

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

JavierMatosD
Copy link
Contributor

The tool currently falsely claims that "Missing [package] and downloads are blocked by x-block-origin"

To repro:

.\vcpkg.exe x-download out.txt --skip-sha512 --url=
https://nonexistent.com/

output:

~/dev/vcpkg-tool % out/build/macos-ci/vcpkg x-download out.txt --skip-sha512 --url=
https://nonexistent.com
error: Missing out.txt and downloads are blocked by x-block-origin.
error: : curl failed to download with exit code 2
curl: (2) no URL specified
curl: try 'curl --help' or 'curl --manual' for more information

Expected:

~/dev/vcpkg-tool % out/build/macos-ci/vcpkg x-download out.txt --skip-sha512 --url=
https://nonexistent.com
error: : curl failed to download with exit code 2
curl: (2) no URL specified
curl: try 'curl --help' or 'curl --manual' for more information

@@ -936,6 +936,10 @@ namespace vcpkg
msg::url = replace_secrets(read_url, m_config.m_secrets));
return read_url;
}
else
{
msg::println(msgAssetCacheMissBlockOrigin, msg::path = download_path.filename());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem correct to me, can you show how we know x-block-origin is set here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants