From 501bdec408313a03679a78a99b3c5b2924019d67 Mon Sep 17 00:00:00 2001 From: Mike Boutin Date: Tue, 2 Aug 2022 10:28:48 -0400 Subject: [PATCH] Work around cargo crate index fetch error rust-lang/cargo#10303. 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. --- .github/workflows/ci-min-test-matrix.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci-min-test-matrix.yml b/.github/workflows/ci-min-test-matrix.yml index b1a7239b..82942ed2 100644 --- a/.github/workflows/ci-min-test-matrix.yml +++ b/.github/workflows/ci-min-test-matrix.yml @@ -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 @@ -43,3 +51,5 @@ jobs: with: command: test args: --all --verbose --features "use_serde" + env: + CARGO_NET_GIT_FETCH_WITH_CLI: true #${{ matrix.cli_fetch }}