From 6554a0cbec53480d0fd1e33a3bcc049592e5e7f0 Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Sun, 4 Jun 2023 10:07:50 -0700 Subject: [PATCH] build_dist.sh: use $go consistently. The invocation at the end unconditionally used ./tool/go, but the structuring on lines 14-17 sets up to use a different toolchain if the platform requires it. Fixes https://github.com/tailscale/tailscale/issues/8156 Signed-off-by: Denton Gentry --- build_dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_dist.sh b/build_dist.sh index b55b7f053..0c757c26d 100755 --- a/build_dist.sh +++ b/build_dist.sh @@ -49,4 +49,4 @@ while [ "$#" -gt 1 ]; do esac done -exec ./tool/go build ${tags:+-tags=$tags} -ldflags "$ldflags" "$@" +exec $go build ${tags:+-tags=$tags} -ldflags "$ldflags" "$@"