-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if curl fails, print a warning instead of exiting (#1137)
* Fix microsoft/vcpkg#32522 Currently, the `download_files` function is only used by binary caching providers (`HttpGetBinaryProvider` and `GHABinaryProvider`), so I think it is okay to change the function so that it does not exit with error. I manually tested following scenarios: | **--only-binarycaching** | **server up** | **server down** | | ------------------------ | ------------- | ------------------ | | **Without** | OK | Continue with Warn | | **With** | OK | Exit with Error | * Move retries for curl operations into curl itself. * Added function to parse curl status lines with error messages embedded and tests. * Add getting exit code and error message for each curl operation, and return those operation results through ExpectedL<int> rather than terminating vcpkg. * Add test case handling for old curl tested on Ubuntu 20.04. Co-authored-by: Billy Robert O'Neal III <[email protected]>
- Loading branch information
1 parent
b45524b
commit 7fd552f
Showing
6 changed files
with
289 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.