Просмотр исходного кода

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 https://github.com/rust-lang/cargo/issues/10303
Valentin Gosu 4 лет назад
Родитель
Сommit
31f6d5b9d8
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      .github/workflows/main.yml

+ 2 - 0
.github/workflows/main.yml

@@ -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