summaryrefslogtreecommitdiffhomepage
path: root/tool/go
AgeCommit message (Collapse)AuthorFilesLines
2023-02-22tool/gocross: a tool for building Tailscale binariesDavid Anderson1-78/+1
Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-12tool/go: don't use the names GOOS/GOARCH in scriptDavid Anderson1-9/+9
The use of GOOS to mean "the compiler's host architecture" ends up overriding whatever GOOS the user passed in, resulting in befuddling errors like "unsupported GOOS/GOARCH pair linux/wasm" when the caller requests js/wasm. Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-02go.toolchain.rev: use new statically built toolchainDavid Anderson1-8/+1
Also removes the toolchain builds from flake.nix. For now the flake build uses upstream Go 1.20, a followup change will switch it back to our custom toolchain. Updates tailscale/corp#9005 Signed-off-by: David Anderson <danderson@tailscale.com>
2022-07-25tool/go: accept a marker file with no line terminatorJames Tucker1-1/+3
Somewhere my local configuration or program versions are producing marker files earlier in the process that lack a line terminator. This doesn't need to cause an exit via set -e, we can just continue the process. $extracted matches $REV anyway, so the process works. Signed-off-by: James Tucker <james@tailscale.com>
2022-01-04tool/go: add wrapper to download and use go.toolchain.rev go version.Maisem Ali1-0/+89
Also update build_dist.sh and build_docker.sh to use the wrapper. Signed-off-by: Maisem Ali <maisem@tailscale.com>