cmd/printdep: add --next flag to use rc Go build hash instead

Updates tailscale/corp#36382

Change-Id: Ib7474b0aab901e98f0fe22761e26fd181650743c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2026-01-27 14:44:32 -08:00
committed by Brad Fitzpatrick
parent a374cc344e
commit 8f8236feb3
3 changed files with 16 additions and 2 deletions
+6
View File
@@ -26,6 +26,12 @@ var AlpineDockerTag string
//go:embed go.toolchain.rev
var GoToolchainRev string
// GoToolchainNextRev is like GoToolchainRev, but when using the
// "go.toolchain.next.rev" when TS_GO_NEXT=1 is set in the environment.
//
//go:embed go.toolchain.next.rev
var GoToolchainNextRev string
//lint:ignore U1000 used by tests + assert_ts_toolchain_match.go w/ right build tags
func tailscaleToolchainRev() (gitHash string, ok bool) {
bi, ok := debug.ReadBuildInfo()