]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go/internal/bug: use envcmd instead of go env
authorManlio Perillo <manlio.perillo@gmail.com>
Tue, 27 Apr 2021 12:48:20 +0000 (14:48 +0200)
committerBryan C. Mills <bcmills@google.com>
Wed, 28 Apr 2021 15:47:34 +0000 (15:47 +0000)
commit12af403624baa87700fe05db3e21c26e410871fd
tree768e440e579369aa81bfb7036b64ec3be45b64df
parent5c69cb2a5bc33ae2c8af598a53f4337bd1e77508
cmd/go/internal/bug: use envcmd instead of go env

Add the printGoEnv function to print the go environment variables, using
the envcmd package instead of invoking go env.

Add the PrintEnv function to the envcmd package, to avoid duplicating
code.

Updates #45803

Change-Id: I38d5b936c0ebb16e741ffbee4309b95d6d0ecc6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/314230
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/bug/bug.go
src/cmd/go/internal/envcmd/env.go