Skip to content

Commit

Permalink
src/tailscale/cli: fix go path for development mode (#67)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shayne committed Jun 20, 2023
1 parent b946afc commit e4db808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tailscale/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit e4db808

Please sign in to comment.