From 830f54b70ed2ce0c28c8db30876aba67beed7ee3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 13 Mar 2023 17:23:13 -0400 Subject: go/build/constraint: add GoVersion For #57001, programs need to be able to deduce the Go version implied by a given build constraint. GoVersion determines that, by discarding all build tags other than Go versions and computing the minimum Go version implied by the resulting expression. For #59033. Change-Id: Ifb1e7af2bdbdf172f82aa490c826c9b6ca5e824b Reviewed-on: https://go-review.googlesource.com/c/go/+/476275 Run-TryBot: Russ Cox Reviewed-by: Bryan Mills Auto-Submit: Russ Cox TryBot-Result: Gopher Robot --- src/cmd/dist/buildtool.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd') diff --git a/src/cmd/dist/buildtool.go b/src/cmd/dist/buildtool.go index f2228df33d..09b8750dc8 100644 --- a/src/cmd/dist/buildtool.go +++ b/src/cmd/dist/buildtool.go @@ -59,6 +59,7 @@ var bootstrapDirs = []string{ "debug/elf", "debug/macho", "debug/pe", + "go/build/constraint", "go/constant", "internal/abi", "internal/coverage", -- cgit v1.3