cmd/go/internal/envcmd: fix showing GODEBUG env value

It was accidently dropped in CL 563137

For #34208

Change-Id: I0aea93fda6260f07bc662dea92d1eabb26f82ca0
Reviewed-on: https://go-review.googlesource.com/c/go/+/586095
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
This commit is contained in:
Michael Matloob 2024-05-16 10:51:49 -04:00
parent a22cb5cabe
commit 643ad42d5c
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func MkEnv() []cfg.EnvVar {
{Name: "GOTOOLDIR", Value: build.ToolDir},
{Name: "GOVCS", Value: cfg.GOVCS},
{Name: "GOVERSION", Value: runtime.Version()},
{Name: "GODEBUG"},
{Name: "GODEBUG", Value: os.Getenv("GODEBUG")},
}
for i := range env {