Skip to content

Commit a34d040

Browse files
committed
try original location before our mirror
We added this because downloads were failing due to deno issues that only happened in CI, but now we use cURL in CI to work around this. We should check the original, it may have been yanked and replaced for example. Although longer term our protocol will work around that.
1 parent 5babde6 commit a34d040

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libexec/fetch.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ const zipfile = await (async () => {
5656
})()
5757

5858
try {
59-
// first try our mirror
59+
// first try the original location
60+
return await download({ dst, src: url })
61+
} catch {
62+
// then try our mirror
6063
const src = useOffLicense('s3').url(stowage)
6164
return await download({ dst, src })
62-
} catch {
63-
// oh well, try original location then
64-
return await download({ dst, src: url })
6565
}
6666
})()
6767

0 commit comments

Comments
 (0)