Commit 425f2f2
committed
ci: portable retry loop in download-and-unpack for BusyBox wget
The GNU wget retry flags I added in the previous commit (--tries,
--waitretry, --timeout, --retry-connrefused) are not supported by
BusyBox wget, which is what the Alpine container image ships. Every
alpine matrix cell on run 26723340409 died immediately at the first
download with "wget: unrecognized option: waitretry=3".
Hand-roll the retry loop in bash so we only need flags that work in
both GNU and BusyBox wget (-q, -O, -U, -T). Same retry count, same
backoff, same temp-file staging — just doesn't lean on wget for the
retry semantics anymore.
Verified locally on macOS (GNU wget 1.21.3) and on
node:25-alpine3.22 (BusyBox wget) — both extract zlib's v1.3.1
tarball cleanly.1 parent 95a802b commit 425f2f2
1 file changed
Lines changed: 29 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
24 | 46 | | |
25 | 47 | | |
26 | 48 | | |
| |||
0 commit comments