Repository navigation
fix(swm-macos-runner): put Homebrew first in the job PATH - #290
Merged
smartwatermelon-agent[bot] merged 1 commit intoNov 18, 2026
Merged
Conversation
Jobs inherit run-job.sh's environment, and the guest's default PATH has
/bin ahead of /opt/homebrew/bin. On the probe PR, nine dotfiles test
files failed on this runner but pass on macos-latest: a bare `bash` was
/bin/bash 3.2 (`mapfile: command not found`, `${owner,,}: bad
substitution`). The same order would also keep python3 on the Command
Line Tools 3.9 after the image installs Homebrew python.
run-job.sh now exports a Homebrew-first PATH, as on macos-latest. The
runner dir is overridable (SWM_RUNNER_DIR) so a new test can run the
script against a stub run.sh. That test fails without the PATH line.
Advances #252
smartwatermelon-agent
Bot
requested a review
from twistedmelonman
as a code owner
November 18, 2026 22:28
twistedmelonman
approved these changes
Nov 18, 2026
smartwatermelon-agent
Bot
deleted the
claude/fix-swm-job-path-0ff2a5bc
branch
November 18, 2026 22:32
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.
Jobs on the Tart runner now get a Homebrew-first PATH, as on
macos-latest.On the probe PR (smartwatermelon/dotfiles#508), nine dotfiles test files that pass on
macos-latestfailed on this runner. A barebashthere was/bin/bash3.2, which gavemapfile: command not foundand${owner,,}: bad substitution. The guest's default PATH has/binahead of/opt/homebrew/bin, and jobs inheritrun-job.sh's environment. The same order would also keeppython3on the Command Line Tools 3.9 after #289.guest/run-job.shexports the PATH before it starts the runner.SWM_RUNNER_DIRoverrides the runner dir, sotests/test-run-job.shcan run the script against a stubrun.sh. Without the PATH line, that test fails.The guest-dir hash changes, so the updater rebuilds the image.
Advances #252