fix(ci): release-plz cargo package fails — disable sccache wrapper#380
Merged
Conversation
The R4-activated release-plz workflow failed on its first real run: cargo package failed: could not execute process `sccache rustc -vV` (never executed) — No such file or directory (os error 2) Root cause: .cargo/config.toml sets `rustc-wrapper = "sccache"` repo- wide for local-dev caching. release-plz spawns `cargo package` in per-tag worktrees, which inherits the wrapper, but GitHub-hosted runners don't have sccache installed. Fix: add workflow-level `RUSTC_WRAPPER: ""` + `CARGO_INCREMENTAL: 0`, mirroring the identical guard already in pr-fast.yml (line 63). This defeats the config value without touching .cargo/config.toml (which would degrade local dev UX). Also: replace the R7 OIDC job's actionlint-flagged `if: false` with a repo-variable gate (`vars.ENABLE_CRATES_IO_PUBLISH == 'true'`) — keeps the job dormant, satisfies actionlint, and makes R8 activation a Settings toggle instead of a workflow edit.
This was referenced Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The R4-activated release-plz workflow failed on its first real run (run 27239208318) after PR #379 merged:
Root cause
.cargo/config.tomlsetsrustc-wrapper = "sccache"repo-wide for local-dev caching. release-plz spawnscargo packagein per-tag worktrees, which inherits the wrapper — but GitHub-hosted runners don't have sccache installed.This is the same class of bug already solved in
pr-fast.yml:63(RUSTC_WRAPPER: ""); release-plz.yml simply never got the guard because it was manual-only until R4.Fix
RUSTC_WRAPPER: ""+CARGO_INCREMENTAL: 0env, mirroring pr-fast.yml. Defeats the config value without touching.cargo/config.toml(preserves local dev UX).if: falsewith a repo-variable gate (vars.ENABLE_CRATES_IO_PUBLISH == 'true') — keeps the job dormant, satisfies actionlint, makes R8 activation a Settings toggle.Verification
actionlint .github/workflows/release-plz.yml: ✅ 0 warnings