From f523c6d187d211628f3869e5bc7bee852b602ded Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Wed, 9 Sep 2026 11:42:37 -0400 Subject: [PATCH] keybot: use system go for build jobs Drop the custom /Users/build/code/go/bin prefix from the PATH handed to launchd build jobs. Homebrew's go (1.27.1) is now the one that gets used. /opt/homebrew/bin has to move ahead of /usr/local/bin: the build box has a stale golang.org pkg install at /usr/local/go symlinked into /usr/local/bin (1.23.1), which would otherwise win now that the explicit prefix is gone. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_018MK1NyLj3PgQZxH343GEde --- keybot/keybot.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/keybot/keybot.go b/keybot/keybot.go index 393ee41..ec652c3 100644 --- a/keybot/keybot.go +++ b/keybot/keybot.go @@ -94,10 +94,8 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string, home := os.Getenv("HOME") javaHome := "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home" javaBin := javaHome + "/bin" - // need custom go to fix issue - goRoot := "/Users/build/code/go" - goBin := goRoot + "/bin" - path := goBin + ":" + javaBin + ":/sbin:/usr/sbin:/bin:/usr/local/bin:/usr/bin:/opt/homebrew/bin" + // Homebrew comes first so we get its go; /usr/local has a stale go install. + path := "/opt/homebrew/bin:" + javaBin + ":/sbin:/usr/sbin:/bin:/usr/local/bin:/usr/bin" env := launchd.NewEnv(home, path) androidHome := "/usr/local/opt/android-sdk" // ndkVer65x := "23.1.7779620"