tool/go: add wrapper to download and use go.toolchain.rev go version.

Also update build_dist.sh and build_docker.sh to use the wrapper.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2022-01-03 16:53:36 -08:00
committed by Maisem Ali
parent 2aeb93003f
commit 01a9906bf8
3 changed files with 93 additions and 1 deletions

View File

@@ -19,6 +19,9 @@
set -eu
# Use the "go" binary from the "tool" directory (which is github.com/tailscale/go)
export PATH=$PWD/tool:$PATH
eval $(./build_dist.sh shellvars)
DEFAULT_TAGS="v${VERSION_SHORT},v${VERSION_MINOR}"
DEFAULT_REPOS="tailscale/tailscale,ghcr.io/tailscale/tailscale"