You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue with the HTTP binary caching, that it fails to check the packages on the server.
The message that I am getting is internal error: /vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/downloads.cpp(925): Value was null
There's a link between the number of packages that it needs to check and after around 25 checks, it fails.
Also this is a regression as this works without any issues on the 2024.12.16 Release
I did some basic debugging and it seems that in the older versions, vcpkg noticed that curl had given a partial response and would try again in a few milliseconds.
Restored 0 package(s) from /root/.cache/vcpkg/archives in 106 us. Use --debug to see more details.
warning: curl returned a partial response; waiting 100 milliseconds and trying again
Restored 0 package(s) from HTTP servers in 147 ms. Use --debug to see more details.
But with the newest version that message doesn't exist and it seems that vcpkg is trying to parse the progress report from curl.
I have added a print on parse_curl_status_line to print the this_line.
And it fails with the following this_line Curl status line: 5ec47b8e-6776-4d70-b9b3-ac2a57bc0a1c % Total % Received % Xferd Average Speed Time Time Time Current
Let me know if you need more details.
BTW, this doesn't seem to be an issue on macOS.
How to reproduce.
I have run this tests inside docker using alpine 3.21
These steps use a local HTTP server, but it doesn't matter, as the initial failure was detected with an artefact repository.
Where some of the dependencies exist and other don't.
Hello all,
I am having an issue with the HTTP binary caching, that it fails to check the packages on the server.
The message that I am getting is
internal error: /vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/downloads.cpp(925): Value was null
There's a link between the number of packages that it needs to check and after around 25 checks, it fails.
Also this is a regression as this works without any issues on the 2024.12.16 Release
I did some basic debugging and it seems that in the older versions, vcpkg noticed that curl had given a partial response and would try again in a few milliseconds.
But with the newest version that message doesn't exist and it seems that vcpkg is trying to parse the progress report from curl.
I have added a print on
parse_curl_status_line
to print thethis_line
.And it fails with the following
this_line
Curl status line: 5ec47b8e-6776-4d70-b9b3-ac2a57bc0a1c % Total % Received % Xferd Average Speed Time Time Time Current
Let me know if you need more details.
BTW, this doesn't seem to be an issue on macOS.
How to reproduce.
I have run this tests inside docker using alpine 3.21
These steps use a local HTTP server, but it doesn't matter, as the initial failure was detected with an artefact repository.
Where some of the dependencies exist and other don't.
Create the following project
vcpkg.json
CMakeLists.txt
CMakePresets.json
Launch a simple HTTP server, so that curl doesn't fail immediately.
I used python with
python3 -m http.server 8080
Then try to configure the project with
cmake --presets dev
The text was updated successfully, but these errors were encountered: