Skip to content

Commit

Permalink
Work around cargo crate index fetch error rust-lang/cargo#10303.
Browse files Browse the repository at this point in the history
Set `CARGO_NET_GIT_FETCH_WITH_CLI` for rust 1.43.0. New versions do not
have the issue and can continue to use libgit2 to fetch the crate index.
  • Loading branch information
iliekturtles committed Aug 4, 2022
1 parent 483a7f0 commit 74fc2e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-min-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
exclude:
- os: ubuntu-latest
rust: stable
include: # https://github.com/rust-lang/cargo/issues/10303
- cli_fetch: false
- os: ubuntu-latest
rust: 1.43.0
cli_fetch: true
- os: macOS-latest
rust: 1.43.0
cli_fetch: true

steps:
- name: Checkout repository
Expand All @@ -43,3 +51,5 @@ jobs:
with:
command: test
args: --all --verbose --features "use_serde"
env:
CARGO_NET_GIT_FETCH_WITH_CLI: ${{ cli_fetch }}

0 comments on commit 74fc2e4

Please sign in to comment.