cmd/go: use a real Go version in the go.mod files in TestScript/mod_readonly

For some reason, the go.mod file added to this test in CL 147281 lists
'go 1.20' instead of the version that was actually current when the
go.mod file was added.

That causes the test's behavior to change under lazy loading, because
1.20 is above the threshold to trigger lazy-loading invariants (1.17).

For #36460

Change-Id: I92400996cb051ab30e99bfffafd91ff32a1e7087
Reviewed-on: https://go-review.googlesource.com/c/go/+/314049
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Bryan C. Mills 2021-04-27 02:31:23 -04:00
parent 0c3557e6ad
commit 8ab7064e33

View File

@ -89,7 +89,7 @@ stderr '^no required module provides package rsc.io/quote; to add it:\n\tgo get
-- go.mod -- -- go.mod --
module m module m
go 1.20 go 1.16
-- x.go -- -- x.go --
package x package x
@ -104,7 +104,7 @@ require (
-- go.mod.redundant -- -- go.mod.redundant --
module m module m
go 1.20 go 1.16
require ( require (
rsc.io/quote v1.5.2 rsc.io/quote v1.5.2
@ -114,7 +114,7 @@ require (
-- go.mod.indirect -- -- go.mod.indirect --
module m module m
go 1.20 go 1.16
require ( require (
rsc.io/quote v1.5.2 // indirect rsc.io/quote v1.5.2 // indirect
@ -124,7 +124,7 @@ require (
-- go.mod.untidy -- -- go.mod.untidy --
module m module m
go 1.20 go 1.16
require ( require (
rsc.io/sampler v1.3.0 // indirect rsc.io/sampler v1.3.0 // indirect