diff options
author | Jay Conrod <jayconrod@google.com> | 2020-09-09 15:58:05 -0400 |
---|---|---|
committer | Jay Conrod <jayconrod@google.com> | 2020-09-11 13:08:54 +0000 |
commit | 03a686069191e3515c7f27f6d90b66d272e0e3a2 (patch) | |
tree | e6b9adc7b7e37e62095d1e30405d4af1ad604f71 /src/cmd/go/testdata/script/modfile_flag.txt | |
parent | d277a361231485999cc2b7433e3244e559c7d7da (diff) | |
download | go-03a686069191e3515c7f27f6d90b66d272e0e3a2.tar.gz go-03a686069191e3515c7f27f6d90b66d272e0e3a2.zip |
cmd/go: update tests to work with -mod=readonly on by default
For #40728
Change-Id: Ic2b025ff75c6e73c0cb58c1737e44e2a41c71571
Reviewed-on: https://go-review.googlesource.com/c/go/+/253837
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go/testdata/script/modfile_flag.txt')
-rw-r--r-- | src/cmd/go/testdata/script/modfile_flag.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/go/testdata/script/modfile_flag.txt b/src/cmd/go/testdata/script/modfile_flag.txt index f05bf03fbf..0ad0880817 100644 --- a/src/cmd/go/testdata/script/modfile_flag.txt +++ b/src/cmd/go/testdata/script/modfile_flag.txt @@ -37,10 +37,10 @@ go mod why rsc.io/quote # 'go list' and other commands with build flags should work. # They should update the alternate go.mod when a dependency is missing. go mod edit -droprequire rsc.io/quote -go list . +go list -mod=mod . grep rsc.io/quote go.alt.mod -go build -n . -go test -n . +go build -n -mod=mod . +go test -n -mod=mod . go get -d rsc.io/quote |