Skip to content

Commit

Permalink
cmd/go/internal/envcmd: fix showing GODEBUG env value
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Sam Thanawalla <[email protected]>
  • Loading branch information
matloob committed May 16, 2024
1 parent a22cb5c commit 643ad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/internal/envcmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 643ad42

Please sign in to comment.