Skip to content

Commit ec58769

Browse files
committed
Add --retry 5 to asdf download
Sometimes GitHub can be having a bad time. `curl` implements a default exponential backoff retry, which should help mitigate any partial failures that GitHub might experience and allow builds to continue.
1 parent b7bcd02 commit ec58769

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

install/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21233,6 +21233,8 @@ async function setupAsdf() {
2123321233
const downloadPath = path.join(os.tmpdir(), releaseToDownload.name);
2123421234
const extractPath = path.join(asdfDir, "bin");
2123521235
await exec.exec("curl", [
21236+
"--retry",
21237+
"5",
2123621238
"-sSL",
2123721239
"-o",
2123821240
downloadPath,

plugin-test/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21229,6 +21229,8 @@ async function setupAsdf() {
2122921229
const downloadPath = path.join(os.tmpdir(), releaseToDownload.name);
2123021230
const extractPath = path.join(asdfDir, "bin");
2123121231
await exec.exec("curl", [
21232+
"--retry",
21233+
"5",
2123221234
"-sSL",
2123321235
"-o",
2123421236
downloadPath,

plugins-add/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21229,6 +21229,8 @@ async function setupAsdf() {
2122921229
const downloadPath = path.join(os.tmpdir(), releaseToDownload.name);
2123021230
const extractPath = path.join(asdfDir, "bin");
2123121231
await exec.exec("curl", [
21232+
"--retry",
21233+
"5",
2123221234
"-sSL",
2123321235
"-o",
2123421236
downloadPath,

setup/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21224,6 +21224,8 @@ async function setupAsdf() {
2122421224
const downloadPath = path.join(os.tmpdir(), releaseToDownload.name);
2122521225
const extractPath = path.join(asdfDir, "bin");
2122621226
await exec.exec("curl", [
21227+
"--retry",
21228+
"5",
2122721229
"-sSL",
2122821230
"-o",
2122921231
downloadPath,

src/setup/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ async function setupAsdf(): Promise<void> {
110110
const downloadPath = path.join(os.tmpdir(), releaseToDownload.name);
111111
const extractPath = path.join(asdfDir, "bin");
112112
await exec.exec("curl", [
113+
"--retry",
114+
"5",
113115
"-sSL",
114116
"-o",
115117
downloadPath,

0 commit comments

Comments
 (0)