go/src/internal
Michael Matloob 5d8d387849 cmd/go: set go.work path using GOWORK, and remove -workfile flag
This change removes the -workfile flag and allows the go.work file path
to be set using GOWORK (which was previously read-only). This removes
the potential discrepancy and confusion between the flag and environment
variable.

GOWORK will still return the actual path of the go.work file found if it
is set to '' or 'auto'. GOWORK will return 'off' if it is set to 'off'.

For #45713
Fixes #51171

Change-Id: I72eed65d47c63c81433f2b54158d514daeaa1ab3
Reviewed-on: https://go-review.googlesource.com/c/go/+/385995
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2022-02-16 15:58:47 +00:00
..
abi all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
buildcfg internal/buildcfg: enable the pacer redesign by default 2021-11-04 20:00:54 +00:00
bytealg all: remove more leftover // +build lines 2021-11-06 10:24:44 +00:00
cfg cmd/go: set go.work path using GOWORK, and remove -workfile flag 2022-02-16 15:58:47 +00:00
cpu all: remove more leftover // +build lines 2021-11-06 10:24:44 +00:00
execabs internal/execabs: replace ioutil.WriteFile with os.WriteFile 2021-04-12 21:57:23 +00:00
fmtsort all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
fuzz internal/fuzz: change meaning of "total" in output 2022-02-04 22:34:05 +00:00
goarch all: manual fixups for //go:build vs // +build 2021-10-28 22:38:00 +00:00
godebug net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
goexperiment runtime: break out new minimum heap size into a goexperiment 2021-12-02 18:02:46 +00:00
goos all: manual fixups for //go:build vs // +build 2021-10-28 22:38:00 +00:00
goroot all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
goversion [dev.typeparams] all: merge master (fdab5be) into dev.typeparams 2021-06-14 13:24:47 -07:00
intern all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
itoa all: add internal/itoa package 2021-03-14 17:56:50 +00:00
lazyregexp
lazytemplate all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
nettrace internal/nettrace: fix spelling error 2022-02-04 20:20:02 +00:00
obscuretestdata all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
oserror
poll all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
profile all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
race all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
reflectlite all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
singleflight all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
syscall all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
sysinfo testing: print cpu type as label for benchmarks 2020-10-20 21:30:18 +00:00
testenv testenv: kill subprocess if SIGQUIT doesn't do it 2021-12-12 14:36:20 +00:00
testlog
trace all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
unsafeheader all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
xcoff