Repository navigation
Commit 5633f75
committed
ci: fail the mdBook download on an HTTP error
The mdBook step kept `-sSL` while the cargo-nextest steps use `-LsSf`, so it
still had the failure mode this branch set out to remove. Without `--fail`, curl
treats an HTTP error as a successful transfer: it writes the error page to
/tmp/mdbook.tar.gz and exits 0, and `tar` then fails with "not in gzip format"
instead of reporting the 403 or 404 that actually happened. `--retry` cannot help
either, because curl never classifies the response as an error to retry.
Reproduced against a non-existent release asset: without -f, curl exits 0 having
written a 9-byte "Not Found" body and tar exits 2 with no usable message; with
-f, curl exits 22 and says "The requested URL returned error: 404". The real
asset still downloads and extracts (mdbook v0.4.40).
Reported by aws-sam-tooling-bot on #843.1 parent 7e16ee9 commit 5633f75
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments