]> Cypherpunks repositories - gostls13.git/commit
cmd/go: include default GOEXPERIMENT in build config
authorCherry Zhang <cherryyz@google.com>
Fri, 12 Mar 2021 16:21:38 +0000 (11:21 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 12 Mar 2021 16:51:16 +0000 (16:51 +0000)
commit086357e8f617c325339fdaedd13563dbdb05b00d
tree0f941bca4ca6f82320bcf110409d5c14a0817b59
parent9289c120025be6fef3a27732229a38df3ebf47c7
cmd/go: include default GOEXPERIMENT in build config

Currently, the build config includes GOEXPERIMENT environment
variable if it is not empty, but that doesn't take the default
value (set at make.bash/bat/rc time) into consideration. This
may cause standard library packages appearing stale, as the
build config appears changed.

This CL changes it to use cfg.GOEXPERIMENT variable, which
includes the default value (if it is not overwritten).

May fix regabi and staticlockranking builders.

Change-Id: I242f887167f8e99192010be5c1a046eb88ab0c2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/301269
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/work/exec.go