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 <mario@tailscale.com>
This commit is contained in:
Mario Minardi 2026-07-13 09:51:27 -06:00
parent 546937c0d1
commit 391b3df323
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

1
dist/index.js generated vendored
View file

@ -52652,6 +52652,7 @@ async function installTailscaleMacOS(config, toolPath) {
env: {
...process.env,
TS_USE_TOOLCHAIN: "1",
GOWORK: "off",
},
logMode: config.logMode,
});

View file

@ -696,6 +696,7 @@ async function installTailscaleMacOS(
env: {
...process.env,
TS_USE_TOOLCHAIN: "1",
GOWORK: "off",
},
logMode: config.logMode,
},