Skip to content

fix(swm-macos-runner): put Homebrew first in the job PATH - #290

Merged
smartwatermelon-agent[bot] merged 1 commit into
mainfrom
claude/fix-swm-job-path-0ff2a5bc
Nov 18, 2026
Merged

smartwatermelon-agent[bot] merged 1 commit into
mainfrom
claude/fix-swm-job-path-0ff2a5bc

Conversation

@smartwatermelon-agent

Copy link
Copy Markdown
Contributor

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-latest failed on this runner. A bare bash there was /bin/bash 3.2, which gave mapfile: command not found and ${owner,,}: bad substitution. The guest's default PATH has /bin ahead of /opt/homebrew/bin, and jobs inherit run-job.sh's environment. The same order would also keep python3 on the Command Line Tools 3.9 after #289.

  • guest/run-job.sh exports the PATH before it starts the runner.
  • SWM_RUNNER_DIR overrides the runner dir, so tests/test-run-job.sh can run the script against a stub run.sh. Without the PATH line, that test fails.

The guest-dir hash changes, so the updater rebuilds the image.

Advances #252

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
smartwatermelon-agent Bot merged commit 54cd6ce into main Nov 18, 2026
6 checks passed
@smartwatermelon-agent
smartwatermelon-agent Bot deleted the claude/fix-swm-job-path-0ff2a5bc branch November 18, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant