From bcb7eb2ad0d56b02ce98ac207667f96c1922f98e Mon Sep 17 00:00:00 2001 From: kevinwang5658 <20214115+kevinwang5658@users.noreply.github.com> Date: Sat, 4 Jul 2026 02:50:11 +0000 Subject: [PATCH] fix: auto-fix test failures from Test all (Linux) --- src/resources/android/android-studios/android-studio.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/android/android-studios/android-studio.ts b/src/resources/android/android-studios/android-studio.ts index e732759a..c2b5962e 100644 --- a/src/resources/android/android-studios/android-studio.ts +++ b/src/resources/android/android-studios/android-studio.ts @@ -143,7 +143,7 @@ export class AndroidStudioResource extends Resource { const temporaryDir = await fs.mkdtemp(path.join(os.tmpdir(), 'codify-android-')) try { - await $.spawn(`curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused ${downloadLink.link} -o android-studio.dmg`, { cwd: temporaryDir }); + await $.spawn(`curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused --retry-all-errors ${downloadLink.link} -o android-studio.dmg`, { cwd: temporaryDir }); const mountedDir = '/Volumes/android-studio' const { data } = await $.spawn('hdiutil attach android-studio.dmg -mountpoint "/Volumes/android-studio"', { cwd: temporaryDir }); @@ -191,7 +191,7 @@ export class AndroidStudioResource extends Resource { try { const { status: curlStatus } = await $.spawnSafe('curl --version'); if (curlStatus === SpawnStatus.SUCCESS) { - await $.spawn(`curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused ${downloadLink.link} -o android-studio.tar.gz`, { cwd: temporaryDir }); + await $.spawn(`curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused --retry-all-errors ${downloadLink.link} -o android-studio.tar.gz`, { cwd: temporaryDir }); } else { await $.spawn(`wget -q --tries=5 --waitretry=3 -O android-studio.tar.gz ${downloadLink.link}`, { cwd: temporaryDir }); }