|
36 | 36 | uses: Swatinem/rust-cache@v2 |
37 | 37 |
|
38 | 38 | - name: Install cargo-nextest |
39 | | - run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin |
| 39 | + # Retried, and downloaded to a file rather than piped into tar: the default |
| 40 | + # shell has no pipefail, so curl's exit status was discarded and a transient |
| 41 | + # connection reset surfaced as an unrecoverable tar error. |
| 42 | + run: | |
| 43 | + curl --retry 5 --retry-all-errors --retry-delay 5 -LsSf \ |
| 44 | + https://get.nexte.st/latest/linux -o /tmp/cargo-nextest.tar.gz |
| 45 | + tar zxf /tmp/cargo-nextest.tar.gz -C "${CARGO_HOME:-$HOME/.cargo}/bin" |
40 | 46 |
|
41 | 47 | - name: linting |
42 | 48 | run: | |
@@ -271,7 +277,13 @@ jobs: |
271 | 277 | uses: Swatinem/rust-cache@v2 |
272 | 278 |
|
273 | 279 | - name: Install cargo-nextest |
274 | | - run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin |
| 280 | + # Retried, and downloaded to a file rather than piped into tar: the default |
| 281 | + # shell has no pipefail, so curl's exit status was discarded and a transient |
| 282 | + # connection reset surfaced as an unrecoverable tar error. |
| 283 | + run: | |
| 284 | + curl --retry 5 --retry-all-errors --retry-delay 5 -LsSf \ |
| 285 | + https://get.nexte.st/latest/linux -o /tmp/cargo-nextest.tar.gz |
| 286 | + tar zxf /tmp/cargo-nextest.tar.gz -C "${CARGO_HOME:-$HOME/.cargo}/bin" |
275 | 287 |
|
276 | 288 | - uses: actions/setup-python@v4 |
277 | 289 | with: |
@@ -334,7 +346,13 @@ jobs: |
334 | 346 | uses: Swatinem/rust-cache@v2 |
335 | 347 |
|
336 | 348 | - name: Install cargo-nextest |
337 | | - run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin |
| 349 | + # Retried, and downloaded to a file rather than piped into tar: the default |
| 350 | + # shell has no pipefail, so curl's exit status was discarded and a transient |
| 351 | + # connection reset surfaced as an unrecoverable tar error. |
| 352 | + run: | |
| 353 | + curl --retry 5 --retry-all-errors --retry-delay 5 -LsSf \ |
| 354 | + https://get.nexte.st/latest/linux -o /tmp/cargo-nextest.tar.gz |
| 355 | + tar zxf /tmp/cargo-nextest.tar.gz -C "${CARGO_HOME:-$HOME/.cargo}/bin" |
338 | 356 |
|
339 | 357 | - uses: actions/setup-python@v4 |
340 | 358 | with: |
|
0 commit comments