From 54d9d3b123679605746db40ec4e60297643e9514 Mon Sep 17 00:00:00 2001 From: "Claude (Opus)" Date: Thu, 19 Mar 2026 17:14:34 +0000 Subject: [PATCH] fix: set RUSTUP_TOOLCHAIN=stable for MSRV check in publish workflow The publish workflow's MSRV check fails because rust-toolchain.toml pins Rust to 1.91, which interferes with cargo-msrv's toolchain resolution. The nightly workflow already handles this correctly by setting RUSTUP_TOOLCHAIN=stable. Apply the same fix here. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish-crates.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-crates.yml b/.github/workflows/publish-crates.yml index 7fd35b712d..3a62de6452 100644 --- a/.github/workflows/publish-crates.yml +++ b/.github/workflows/publish-crates.yml @@ -37,6 +37,10 @@ jobs: - name: Install cargo-msrv run: cargo binstall --no-confirm --force cargo-msrv - name: Check MSRV for each workspace member + # Use stable toolchain instead of rust-toolchain.toml version to avoid + # issues where cargo-msrv requires a newer Rust than the pinned version. + env: + RUSTUP_TOOLCHAIN: stable run: | export PATH="$HOME/.cargo/bin:$PATH" ./scripts/check-msrv.sh