CircleCI-Public / node-orb

An orb for working with Node.js on CircleCI
https://circleci.com/orbs/registry/orb/circleci/node
MIT License
52 stars 80 forks source link

Ask curl to retry 5 times on yarn download #155

Closed olleolleolle closed 2 years ago

olleolleolle commented 2 years ago

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
orb-publisher commented 2 years ago

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