Find rustc next to a keg-only Homebrew rustup #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-keg-only-rustup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
stabbur's macOS job failed in this action on the M5 runner (stabbur run #3):
That runner has Homebrew's rustup. Homebrew links only
rustupinto/opt/homebrew/bin; therustcandcargoproxies sit next to the real binary in the Cellar. Socommand -v rustupsucceeds, the sh.rustup.rs install is skipped, and~/.cargo/bin(which this action adds to PATH) holds nothing. The toolchain installs, then nothing can run it.Fix: if
rustcis still missing after setup, resolve therustupsymlink and put its real directory on PATH andGITHUB_PATH. Runners where rustup came from sh.rustup.rs are unchanged, sincerustcis already found.tests/run.shgets a case that models the keg layout (a relative symlink, norustcon PATH). It fails on main and passes here.After merge this needs a
v1.0.2tag and thev1tag moved; stabbur pinsv1.0.1.Automated Codex review (read-only) of head
65190e70e8.tests/run.sh:108: Invariant: the keg regression test must control whetherrustcis available (standards 13 and 18). Its PATH includes/usr/binand/bin, so a self-hosted Linux runner with distro-installed Rust finds/usr/bin/rustc. The fallback is skipped and theGITHUB_PATHassertion fails, even though the implementation works. This newly added test can therefore break CI on an ordinary supported runner configuration. Build an isolated PATH containing the required shell utilities but no host Rust executables, then assert thatrustcis initially absent before invoking setup.BLOCKING: 1
Reviewed head
65190e70e8at 2026-11-06T00:56:55Z by codex exec (read-only sandbox).