]> Cypherpunks repositories - gostls13.git/commit
cmd/go: print more env variables in "go env"
authorQuentin Smith <quentin@golang.org>
Mon, 17 Oct 2016 22:40:18 +0000 (18:40 -0400)
committerQuentin Smith <quentin@golang.org>
Tue, 18 Oct 2016 20:24:45 +0000 (20:24 +0000)
commit75fef5a0f60bcace88a8d7470df2d85d8eee048f
treed098600c791f98f311bea9d9fdbce3294464a708
parent8b3194ac8fd8436bf4bfd252de58ab81154f334d
cmd/go: print more env variables in "go env"

"go env" previously only printed a subset of the documented environment
variables; now it includes everything, such as GO386 and CGO_*.

This also fixes the CGO_CFLAGS environment variable to always have the
same default. According to iant@ and confirmed by testing, cgo can now
understand the default value of CGO_CFLAGS.

Fixes #17191.

Change-Id: Icf75055446dd250b6256ef1139e9ce848f4a9d3b
Reviewed-on: https://go-review.googlesource.com/31330
TryBot-Result: Gobot Gobot <gobot@golang.org>
Run-TryBot: Quentin Smith <quentin@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/build.go
src/cmd/go/env.go
src/cmd/go/go_test.go
src/cmd/go/help.go