From 391b3df323df5c88c564dc6b03cdbd98cfe62259 Mon Sep 17 00:00:00 2001 From: Mario Minardi Date: Mon, 13 Jul 2026 09:51:27 -0600 Subject: [PATCH] src: set GOWORK to "off" for macOS builds Explicitly set GOWORK to "off" when building macOS from source to ensure we do not pick up go.work files from host repositories where the action is being run. Updates https://github.com/tailscale/github-action/issues/287 Signed-off-by: Mario Minardi --- dist/index.js | 1 + src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index e59b833..f094328 100644 --- a/dist/index.js +++ b/dist/index.js @@ -52652,6 +52652,7 @@ async function installTailscaleMacOS(config, toolPath) { env: { ...process.env, TS_USE_TOOLCHAIN: "1", + GOWORK: "off", }, logMode: config.logMode, }); diff --git a/src/main.ts b/src/main.ts index 109d4c1..57a9d52 100644 --- a/src/main.ts +++ b/src/main.ts @@ -696,6 +696,7 @@ async function installTailscaleMacOS( env: { ...process.env, TS_USE_TOOLCHAIN: "1", + GOWORK: "off", }, logMode: config.logMode, },