Replies: 4 comments
-
https://github.com/microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_download_distfile.cmake#L127 Please consider adding some or all of the following:
Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this issue was resolved. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't think it was... or if there's an option to retry, I can't seem to find it. What is the option? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@albertvaka After double confirm, it isn't. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Builds randomly fail for me if there is network traffic congestion or some other connection issue.
For example, I see:
But I then re-run the vcpkg install command and the installation transaction succeeds without the same error.
Proposed solution
I think the download client (aria2 iirc) needs to try three times with approximately a three second pause in between each retry before giving up and allowing the build to fail.
Other package managers elsewhere do this and retry at least once in the event of a download error.
Some also provide cached mirror copies of source archives as a fall back in the event of a download error, which may also be an area of enhancement for another time.
Additional context
The reason the current method is bad is that if you currently use vcpkg with CI/CD then a single vcpkg download failure may provide a build failure for your build or test environment.
Three download retry attempts for source archives would be optimal to try to minimise such failures.
Beta Was this translation helpful? Give feedback.
All reactions