ci.yml macos-latest: cargo test resolves to rustup-init #39

Open
opened 2026-05-23 20:55:25 +00:00 by coilysiren · 0 comments
Owner

Originally filed by @coilysiren on 2026-05-14T04:06:57Z - https://github.com/coilysiren/repo-recall/issues/131

Repro

Run 25839504844 (commit 30040db, ci.yml on macos-latest) failed at cargo test --all-features --no-fail-fast:

error: error: unexpected argument 'test' found

Usage: rustup-init[EXE] [OPTIONS]

The same workflow on the prior commit (423ea46) succeeded; same workflow on ubuntu-latest in the same run succeeded. Only macos-latest is broken.

Diagnosis

cargo is resolving to rustup-init on the runner. Classic symptom of the macos-latest runner image rotating the rust toolchain layout out from under dtolnay/rust-toolchain@stable, where cargo shim ends up pointing at the bootstrapping installer instead of the installed cargo.

Fix options

  1. Pin to a specific runner image: macos-14 or macos-13 instead of macos-latest.
  2. Bump dtolnay/rust-toolchain past stable to a versioned tag, since the action recently shipped fixes for exactly this symptom.
  3. Drop macos from the matrix - this project is Mac-targeted at runtime but the test surface is all platform-independent. Ubuntu coverage is sufficient.

Found while watching the rate-limit fix CI land.

_Originally filed by @coilysiren on 2026-05-14T04:06:57Z - [https://github.com/coilysiren/repo-recall/issues/131](https://github.com/coilysiren/repo-recall/issues/131)_ **Repro** Run 25839504844 (commit 30040db, ci.yml on macos-latest) failed at `cargo test --all-features --no-fail-fast`: ``` error: error: unexpected argument 'test' found Usage: rustup-init[EXE] [OPTIONS] ``` The same workflow on the prior commit (423ea46) succeeded; same workflow on ubuntu-latest in the same run succeeded. Only macos-latest is broken. **Diagnosis** `cargo` is resolving to `rustup-init` on the runner. Classic symptom of the macos-latest runner image rotating the rust toolchain layout out from under `dtolnay/rust-toolchain@stable`, where `cargo` shim ends up pointing at the bootstrapping installer instead of the installed cargo. **Fix options** 1. Pin to a specific runner image: `macos-14` or `macos-13` instead of `macos-latest`. 2. Bump `dtolnay/rust-toolchain` past stable to a versioned tag, since the action recently shipped fixes for exactly this symptom. 3. Drop macos from the matrix - this project is Mac-targeted at runtime but the test surface is all platform-independent. Ubuntu coverage is sufficient. Found while watching the rate-limit fix CI land.
Sign in to join this conversation.
No labels
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/repo-recall#39
No description provided.