Skip to content

Commit

Permalink
The rust 1.45.0 build fails with
Browse files Browse the repository at this point in the history
```
    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
  • Loading branch information
valenting committed Jul 28, 2022
1 parent 1060c59 commit 31f6d5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
with:
command: build
args: --all-targets
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down

0 comments on commit 31f6d5b

Please sign in to comment.