Skip to content

Commit d9cffab

Browse files
Bryan C. Millscagedmantis
Bryan C. Mills
authored andcommitted
[release-branch.go1.15] 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). This backports CL 314049 to Go 1.15 in order to fix a spurious test failure in a subsequent change. For #46143 Updates #46142 Updates #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> Reviewed-on: https://go-review.googlesource.com/c/go/+/319709 Reviewed-by: Jay Conrod <jayconrod@google.com>
1 parent 448be06 commit d9cffab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/go/testdata/script/mod_readonly.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ go list all
6464
-- go.mod --
6565
module m
6666

67-
go 1.20
67+
go 1.15
6868

6969
-- x.go --
7070
package x
@@ -79,7 +79,7 @@ require (
7979
-- go.mod.redundant --
8080
module m
8181

82-
go 1.20
82+
go 1.15
8383

8484
require (
8585
rsc.io/quote v1.5.2
@@ -89,7 +89,7 @@ require (
8989
-- go.mod.indirect --
9090
module m
9191

92-
go 1.20
92+
go 1.15
9393

9494
require (
9595
rsc.io/quote v1.5.2 // indirect

0 commit comments

Comments
 (0)