Repository navigation
Resolve sccache from PATH for RUSTC_WRAPPER - #183
Merged
Merged
Conversation
taiki-e/install-action installs into ~/.install-action/bin when the cargo on PATH is outside $CARGO_HOME/bin, as on the macos-15-arm64 image where cargo comes from Homebrew's rustup. The hardcoded ~/.cargo/bin/sccache then doesn't exist and cargo fails to start.
|
Merging this PR will move these workflow tags: |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 020c5cf |
skeet70
enabled auto-merge (squash)
November 2, 2026 21:18
giarc3
approved these changes
Nov 2, 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.
RUSTC_WRAPPERwas hardcoded to$HOME/.cargo/bin/sccache.taiki-e/install-actiononly installs there when thecargoonPATHlives in$CARGO_HOME/bin; otherwise it installs into~/.install-action/binand adds that toPATH. On themacos-15-arm6420261028 runner image, cargo resolves to/opt/homebrew/opt/rustup/bin/cargo, so sccache lands in~/.install-action/binand cargo fails before compiling:Failing job: https://github.com/IronCoreLabs/ironcore-alloy/actions/runs/41354337198/job/125522159373?pr=355
Setting
RUSTC_WRAPPER=sccachelets cargo resolve it fromPATH, wherever install-action put it. Applied torust-artifact.yaml, plusrust-ci.yamlandrust-daily.yaml, which hardcode the same path but only run on Ubuntu today.Non-breaking:
rust-artifact-v0.0.0,rust-ci-v3.0.0andrust-daily-v1.0.0move on merge.