Skip to content

Commit 31f6d5b

Browse files
committed
The rust 1.45.0 build fails with
``` Updating crates.io index error: failed to get `serde` as a dependency of package `url v2.2.2 (/home/icecold/workspace/rust-url/url)` Caused by: failed to fetch `https://github.com/rust-lang/crates.io-index` Caused by: error reading from the zlib stream; class=Zlib (5) ``` Fixed by `CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --all-targets` According to rust-lang/cargo#10303
1 parent 1060c59 commit 31f6d5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
with:
3939
command: build
4040
args: --all-targets
41+
env:
42+
CARGO_NET_GIT_FETCH_WITH_CLI: true
4143
- uses: actions-rs/cargo@v1
4244
with:
4345
command: test

0 commit comments

Comments
 (0)