From 401642512c4cc9c63fa47861a08217694f7079ab Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 16:59:29 +0000 Subject: [PATCH] ci: give dtolnay/rust-toolchain a valid toolchain input dtolnay/rust-toolchain at @v1 (and at its master-branch commits) declares `toolchain` as required with no default; only the toolchain-named branches such as @stable supply one. Steps here either: - set no `toolchain:` at all, so the action fails with "'toolchain' is a required input"; - set an invalid value (v1, master, or a note), which rustup cannot install; or - carry a second `with:` key injected above the real one by an earlier bulk edit. A duplicate key makes GitHub reject the whole workflow file. Each affected step now has exactly one `with:` with a valid toolchain: an injected toolchain-only `with:` block is dropped, an invalid value becomes `stable`, and a step with none gets `toolchain: stable`. An existing valid value ('1.97.0', ${{ env.RUST_VERSION }}, stable) is kept as is. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_0132Cdz3iwk2QGKv2sUhhsye --- .github/workflows/coverage.yml | 2 +- .github/workflows/rust-ci.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1ad3ce5..bd3a1aa 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -32,7 +32,7 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@v1 with: - toolchain: v1 + toolchain: stable - name: Cache cargo registry and build uses: Swatinem/rust-cache@v2.9.2 diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 520453c..727217e 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -42,8 +42,7 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@v1 with: - toolchain: v1 - with: + toolchain: stable components: clippy, rustfmt - name: Cache cargo registry and build @@ -74,6 +73,8 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@v1 + with: + toolchain: stable - name: Cache cargo registry and build uses: Swatinem/rust-cache@v2.9.2