]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add GOWORK to go env command
authorMichael Matloob <matloob@golang.org>
Fri, 17 Sep 2021 23:38:33 +0000 (19:38 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 19 Oct 2021 18:43:12 +0000 (18:43 +0000)
commitd94498470bb09bb0606b0eff3248cb5b35e1a145
tree4b2a5a5465225af2961ceea9a7a99e22ba026efe
parent1d63052782a7535a3d4ce4557fd23fd97699b249
cmd/go: add GOWORK to go env command

GOWORK will be set to the go.work file's path, if in workspace mode
or will be empty otherwise.

For #45713
Fixes #48589

Change-Id: I163ffaf274e0a41469c1f3b8514d6f90e20423b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/355689
Trust: Michael Matloob <matloob@golang.org>
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/envcmd/env.go
src/cmd/go/testdata/script/work.txt
src/cmd/go/testdata/script/work_env.txt [new file with mode: 0644]