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 02fb297 commit a8b34ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-min-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
CARGO_NET_GIT_FETCH_WITH_CLI: ${{ matrix.cli_fetch }}

strategy:
fail-fast: false # If one job fails, run remaining jobs.
Expand All @@ -23,6 +24,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 Down

0 comments on commit a8b34ea

Please sign in to comment.