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

Ask curl to retry 5 times on yarn download #155

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

olleolleolle
Copy link
Contributor

The errors may be transient, and the --retry option is about re-attempting to download on a transient error.

Learn more about the retry option:
https://daniel.haxx.se/blog/2020/03/24/curl-ootw-retry-max-time/

Limitations

This doesn't account for "something not gzip got downloaded, like an CDN HTML error page":

Selected version of Yarn is 1.22.19
Checking if YARN is already installed...
Installing YARN v1.22.19

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
mv: cannot stat 'yarn-v1.22.19/*': No such file or directory

The errors may be transient, and the --retry option is about re-attempting to download on a transient error.

Learn more about the retry option:
https://daniel.haxx.se/blog/2020/03/24/curl-ootw-retry-max-time/
@olleolleolle olleolleolle requested a review from a team as a code owner June 21, 2022 06:59
@orb-publisher
Copy link

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/circleci/node?version=dev:db5724c91f5e7f310f4691f39d516f332def4130

@KyleTryon KyleTryon merged commit 749b020 into CircleCI-Public:master Jul 29, 2022
@olleolleolle olleolleolle deleted the patch-8 branch July 29, 2022 15:44
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.

None yet

3 participants