Skip to content

Commit fdced3f

Browse files
committed
Drop global rustc-wrapper = sccache from .cargo/config.toml
The sdist job in publish-python.yml doesn't compile any Rust and therefore doesn't install sccache, but cargo metadata still reads the workspace config and invokes the wrapper — causing a fatal "No such file or directory" before it can even enumerate packages. Same fix rationale as the target-cpu=native removal: config.toml is read everywhere cargo runs, so it can't assume specific host tooling. Build jobs that want sccache opt in explicitly via mozilla-actions/sccache-action or maturin-action's sccache: true.
1 parent df69daf commit fdced3f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.cargo/config.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ incremental = false
77
# Configure the number of parallel jobs
88
jobs = 8
99

10-
rustc-wrapper = "sccache"
10+
# Deliberately no global `rustc-wrapper = "sccache"`: that breaks any
11+
# environment that hasn't installed sccache (e.g. the sdist step of
12+
# our Python publish workflow). If you want sccache locally, either
13+
# set `CARGO_BUILD_RUSTC_WRAPPER=sccache` in your shell, or add a
14+
# `~/.cargo/config.toml` override outside this repository.
1115

1216

1317
[target.'cfg(all())']

0 commit comments

Comments
 (0)