fix(ci): pin dtolnay/rust-toolchain to 1.95.0 to match rust-toolchain.toml

The action was set to @stable, which installs whatever the latest
stable is (1.95.0 right now). Then maturin invokes cargo, which reads
rust-toolchain.toml and re-resolves to "1.95.0 + clippy + rustfmt".
rustup treats stable and 1.95.0 as distinct toolchain identities and
refuses the second install with:

  failed to install component 'clippy-preview-x86_64-unknown-linux-gnu',
  detected conflict: 'bin/cargo-clippy'

This was intermittent across the matrix (only test (3.10) tripped on
the most recent run; others got lucky on cache state). Pinning the
action ref to 1.95.0 makes both sides ask for the exact same toolchain
identity, so the second install is a no-op and the conflict can't fire.

Bump procedure stays the same: when rust-toolchain.toml's channel
changes, update these refs in lock-step.

Plugin manifests auto-bumped 0.11.0 -> 0.13.2 by sync-plugin-versions
hook (unrelated to the workflow fix).
This commit is contained in:
chopratejas 2026-04-27 19:44:39 -07:00
parent 7c88eed7da
commit beec0789ed
7 changed files with 12 additions and 12 deletions

View file

@ -5,14 +5,14 @@
},
"metadata": {
"description": "Headroom marketplace for Claude Code and GitHub Copilot CLI plugins.",
"version": "0.11.0"
"version": "0.13.2"
},
"plugins": [
{
"name": "headroom",
"source": "./plugins/headroom-agent-hooks",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
"version": "0.11.0",
"version": "0.13.2",
"author": {
"name": "Headroom Contributors",
"url": "https://github.com/chopratejas/headroom"

View file

@ -5,14 +5,14 @@
},
"metadata": {
"description": "Headroom marketplace for Claude Code and GitHub Copilot CLI plugins.",
"version": "0.11.0"
"version": "0.13.2"
},
"plugins": [
{
"name": "headroom",
"source": "./plugins/headroom-agent-hooks",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
"version": "0.11.0",
"version": "0.13.2",
"author": {
"name": "Headroom Contributors",
"url": "https://github.com/chopratejas/headroom"

View file

@ -44,7 +44,7 @@ jobs:
# below runs `maturin develop` and symlinks the built `.so` into the
# in-tree `headroom/` package so the editable install resolves it.
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@1.95.0
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2
@ -130,7 +130,7 @@ jobs:
# the editable install resolves it (same pattern as the main `test`
# job above).
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@1.95.0
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2

View file

@ -28,7 +28,7 @@ jobs:
# Rust extension before running the smoke test or every call raises
# `ModuleNotFoundError`. Mirrors the main CI `test` job pattern.
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@1.95.0
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2

View file

@ -42,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@1.95.0
with:
components: rustfmt, clippy
- name: Cache cargo registry + build
@ -101,7 +101,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.95.0
- uses: Swatinem/rust-cache@v2
- name: Install cargo-audit + cargo-deny
run: |
@ -121,7 +121,7 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.95.0
- uses: actions/setup-python@v5
with:
python-version: '3.11'

View file

@ -1,6 +1,6 @@
{
"name": "headroom",
"version": "0.11.0",
"version": "0.13.2",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
"author": {
"name": "Headroom Contributors",

View file

@ -1,6 +1,6 @@
{
"name": "headroom",
"version": "0.11.0",
"version": "0.13.2",
"description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",
"author": {
"name": "Headroom Contributors",