]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: add GOEXPERIMENT to `go env` output
authorMatthew Dempsky <mdempsky@google.com>
Wed, 16 Jun 2021 22:10:57 +0000 (15:10 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 28 Jun 2021 20:51:30 +0000 (20:51 +0000)
commit956c81bfe60306e49e26f7edd4f48cbc24c8fe28
treece8667d951e25660c5402e48f39dc3f7b010942c
parenta1d27269d698d684497d0dc61c968a1c2dbe00b3
cmd/go: add GOEXPERIMENT to `go env` output

This CL adds GOEXPERIMENT to `go env` output, and also makes it
configurable via `GOENV`. Thanks to Baokun Lee's CL 304350 for the
test and initial work on this.

Fixes #45226.

Change-Id: Ie7f92a8a503b6a2a4df3f6598f0b2bf2915e2e7d
Reviewed-on: https://go-review.googlesource.com/c/go/+/328751
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Matthew Dempsky <mdempsky@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/envcmd/env.go
src/cmd/go/internal/help/helpdoc.go
src/cmd/go/testdata/script/env_exp.txt [new file with mode: 0644]
src/cmd/go/testdata/script/env_unset.txt
src/cmd/go/testdata/script/env_write.txt