From e4db808b187c33e3383938319c719508d3a005fa Mon Sep 17 00:00:00 2001 From: shayne Date: Mon, 19 Jun 2023 23:00:00 -0400 Subject: [PATCH] src/tailscale/cli: fix go path for development mode (#67) Use ./tool/go for development mode instead of go. This allows the development mode to work when the go binary is not in the PATH. Fixes #66 Signed-off-by: shayne <79330+shayne@users.noreply.github.com> --- src/tailscale/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tailscale/cli.ts b/src/tailscale/cli.ts index 02cdbc0..13c18e9 100644 --- a/src/tailscale/cli.ts +++ b/src/tailscale/cli.ts @@ -62,7 +62,7 @@ export class Tailscale { } let cwd = __dirname; if (process.env.NODE_ENV === 'development') { - binPath = 'go'; + binPath = '../tool/go'; args = ['run', '.', ...args]; cwd = path.join(cwd, '../tsrelay'); }