Skip to content

Commit c23dcf8

Browse files
committed
ci: retry cargo network ops to survive transient crates.io blips
'cargo install cargo-dist' downloads ~400 crates; a single transient crates.io failure (HTTP/2 framing-layer error) killed the whole install. Set CARGO_NET_RETRY=10 and CARGO_HTTP_MULTIPLEXING=false (HTTP/1.1) so downloads retry and avoid the HTTP/2 framing errors.
1 parent 46908c0 commit c23dcf8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ name: Release
1717
permissions:
1818
"contents": "write"
1919

20+
# Harden cargo network ops against transient crates.io failures while
21+
# 'cargo install cargo-dist' downloads/compiles its deps (HTTP/2 framing-layer
22+
# errors, dropped crate downloads). Retry downloads and force HTTP/1.1.
23+
env:
24+
CARGO_NET_RETRY: "10"
25+
CARGO_HTTP_MULTIPLEXING: "false"
26+
2027
# This task will run whenever you push a git tag that looks like a version
2128
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
2229
# Various formats will be parsed into a VERSION and an optional PACKAGE_NAME, where

0 commit comments

Comments
 (0)