Lightweight coding agent that runs in your terminal
Rust
[codex] Use git CLI for Cargo fetches across Rust workflows (#25775)
Adam Perry @ OpenAIc097ad3e9e78
diff --git a/.github/workflows/cargo-deny.yml b/.github/workflows/cargo-deny.ymlindex 656c50ef28..bbadb57f94 100644--- a/.github/workflows/cargo-deny.yml+++ b/.github/workflows/cargo-deny.yml@@ -6,6 +6,11 @@ on:branches:- main+# Cargo's libgit2 transport has been flaky when fetching git dependencies with+# nested submodules. Prefer the system git CLI across every Cargo invocation.+env:+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"+jobs:cargo-deny:runs-on: ubuntu-latestdiff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.ymlindex d1d7c0df96..9b50ae4032 100644--- a/.github/workflows/rust-ci.yml+++ b/.github/workflows/rust-ci.yml@@ -3,6 +3,11 @@ on:pull_request: {}workflow_dispatch:+# Cargo's libgit2 transport has been flaky when fetching git dependencies with+# nested submodules. Prefer the system git CLI across every Cargo invocation.+env:+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"+jobs:# --- Detect what changed so the fast PR workflow only runs relevant jobs ----changed:diff --git a/.github/workflows/rust-release-argument-comment-lint.yml b/.github/workflows/rust-release-argument-comment-lint.ymlindex 94f15af7d4..7f5ad01aa5 100644--- a/.github/workflows/rust-release-argument-comment-lint.yml+++ b/.github/workflows/rust-release-argument-comment-lint.yml@@ -7,6 +7,11 @@ on:required: truetype: boolean+# Cargo's libgit2 transport has been flaky when fetching git dependencies with+# nested submodules. Prefer the system git CLI across every Cargo invocation.+env:+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"+jobs:skip:if: ${{ !inputs.publish }}diff --git a/.github/workflows/rust-release-windows.yml b/.github/workflows/rust-release-windows.ymlindex 91887cbe0b..f0fd6b90fc 100644--- a/.github/workflows/rust-release-windows.yml+++ b/.github/workflows/rust-release-windows.yml@@ -20,6 +20,11 @@ on:AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAME:required: true+# Cargo's libgit2 transport has been flaky when fetching git dependencies with+# nested submodules. Prefer the system git CLI across every Cargo invocation.+env:+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"+jobs:build-windows-binaries:name: Build Windows binaries - ${{ matrix.runner }} - ${{ matrix.target }} - ${{ matrix.bundle }}diff --git a/.github/workflows/rusty-v8-release.yml b/.github/workflows/rusty-v8-release.ymlindex d98cdb2c43..4b5320dcb9 100644--- a/.github/workflows/rusty-v8-release.yml+++ b/.github/workflows/rusty-v8-release.yml@@ -5,6 +5,11 @@ on:tags:- "rusty-v8-v*.*.*"+# Cargo's libgit2 transport has been flaky when fetching git dependencies with+# nested submodules. Prefer the system git CLI for Cargo smoke tests.+env:+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"+concurrency:group: ${{ github.workflow }}::${{ github.ref_name }}cancel-in-progress: falsediff --git a/.github/workflows/v8-canary.yml b/.github/workflows/v8-canary.ymlindex 6341f218a6..71ce5d7865 100644--- a/.github/workflows/v8-canary.yml+++ b/.github/workflows/v8-canary.yml@@ -37,6 +37,11 @@ on:- "third_party/v8/**"workflow_dispatch:+# Cargo's libgit2 transport has been flaky when fetching git dependencies with+# nested submodules. Prefer the system git CLI for Cargo builds and smoke tests.+env:+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"+concurrency:group: ${{ github.workflow }}::${{ github.event.pull_request.number > 0 && format('pr-{0}', github.event.pull_request.number) || github.ref_name }}cancel-in-progress: ${{ github.ref_name != 'main' }}