Skip to content

Commit cab79ac

Browse files
committed
Harden dependency download with curl retries and fail-on-error
1 parent dc76e99 commit cab79ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ae.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ proc getFileHash(filename: string): string =
302302

303303
proc download(package: Package) =
304304
if not fileExists(package.location):
305-
exec &"curl -O -L {package.sourceUrl}"
305+
exec &"curl -fL --retry 5 --retry-all-errors --retry-delay 2 -O {package.sourceUrl}"
306306
let filename = "ffmpeg_sources" / package.location
307307
let hash = getFileHash(filename)
308308
if package.sha256 != hash:

0 commit comments

Comments
 (0)