From bd81d520abb9f8dde15ebef5b996aa970868da4b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 11 Feb 2023 09:54:34 -0800 Subject: [PATCH] cmd/printdep: print correct toolchain URL In the switch to static toolchains, we removed a legacy oddity from the toolchain URL structure, but forgot to update printdep. Signed-off-by: David Anderson --- cmd/printdep/printdep.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cmd/printdep/printdep.go b/cmd/printdep/printdep.go index 7d209489a..044283209 100644 --- a/cmd/printdep/printdep.go +++ b/cmd/printdep/printdep.go @@ -31,20 +31,11 @@ func main() { fmt.Println(strings.TrimSpace(ts.GoToolchainRev)) } if *goToolchainURL { - var suffix string - switch runtime.GOARCH { - case "amd64": - // None - case "arm64": - suffix = "-" + runtime.GOARCH - default: - log.Fatalf("unsupported GOARCH %q", runtime.GOARCH) - } switch runtime.GOOS { case "linux", "darwin": default: log.Fatalf("unsupported GOOS %q", runtime.GOOS) } - fmt.Printf("https://github.com/tailscale/go/releases/download/build-%s/%s%s.tar.gz\n", strings.TrimSpace(ts.GoToolchainRev), runtime.GOOS, suffix) + fmt.Printf("https://github.com/tailscale/go/releases/download/build-%s/%s-%s.tar.gz\n", strings.TrimSpace(ts.GoToolchainRev), runtime.GOOS, runtime.GOARCH) } }