]> Cypherpunks repositories - gostls13.git/commit
cmd: make go and moddeps tests insensitive to presence of src/go.work
authorDavid Chase <drchase@google.com>
Wed, 30 Mar 2022 16:01:21 +0000 (12:01 -0400)
committerDavid Chase <drchase@google.com>
Wed, 30 Mar 2022 22:30:03 +0000 (22:30 +0000)
commit3b7fce24cda8b9b245bae94aee9fafea87926c50
treed852ff0854ee9ac7580df24c1853cf7457b064fd
parent1ac16586421070cdc76c62b5dfd5e74a4b47fca8
cmd: make go and moddeps tests insensitive to presence of src/go.work

If there is a go.work file in src, "go test cmd/internal/moddeps"
and "go test cmd/go" fail.  Setting GOWORK=off in various command
invocations avoids this problem.

Change-Id: I89fd021ff94998ceda6a3bbc4c3743f08558f98b
Reviewed-on: https://go-review.googlesource.com/c/go/+/396777
Trust: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/testdata/script/mod_dot.txt
src/cmd/internal/moddeps/moddeps_test.go