You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(rust): scope target cache to flake.lock to avoid stale-toolchain builds
A single cargo cache keyed on flake.lock+Cargo.lock with a broad
`cargo-<os>-` restore-key restored, on any flake.lock bump, a ./target
built against the previous nixpkgs. Its cached build-script binaries
reference that toolchain's glibc loader — gone from the new devshell —
so cargo fails to exec them ("No such file or directory"), while
`nix build`, compiling clean in a sandbox, passes.
Split the cache: registry (portable, keyed on Cargo.lock) and target
(key and restore-fallback both bound to flake.lock). A Cargo.lock-only
bump still reuses target so only changed crates recompile; a flake.lock
toolchain bump starts clean instead of restoring a poisoned target.
0 commit comments