Replies: 6 comments 7 replies
-
| 
         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.
-
| 
         I think this issue was resolved.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         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.
-
| 
         @albertvaka After double confirm, it isn't.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         I am still running into this problem.  I am preparing to write a wrapper script around the vcpkg invocation to end this tiring issue.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Inadvertently, i had given multiple build threads read/write access to the asset cache. They were fighting over update rights. Fixing this, so far no problems.  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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