]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.15] cmd/go: use a real Go version in the go.mod files in TestScri...
authorBryan C. Mills <bcmills@google.com>
Tue, 27 Apr 2021 06:31:23 +0000 (02:31 -0400)
committerCarlos Amedee <carlos@golang.org>
Wed, 2 Jun 2021 19:01:19 +0000 (19:01 +0000)
commitd9cffabed288ebece50ece29d44eff283e5cc485
tree4aa2706dfcfc7ec1a93d822fd8b0fde728a93f82
parent448be06c36caa792b12d997fea8cae50ba7d9de0
[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>
src/cmd/go/testdata/script/mod_readonly.txt