nodejs / unofficial-builds

Unofficial binaries for Node.js
https://unofficial-builds.nodejs.org
227 stars 47 forks source link

fix: retry fetch-source curl request #88

Closed tim-richter closed 1 year ago

tim-richter commented 1 year ago

This PR is in response to the fetch-source script failing on multiple occasions in the past. https://github.com/nodejs/unofficial-builds/issues/87, https://github.com/nodejs/unofficial-builds/issues/81, https://github.com/nodejs/unofficial-builds/issues/86

If the request fails, the curl command is repeated a total of 6 times (10 second sleep time), which equates to a minute total wait time. I think that should be enough time for any potential cache issues to resolve.