]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.16] 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:00:23 +0000 (19:00 +0000)
commitc9f27b8d31291cc1051824c108452c2e05c0b79d
tree70dc12899ca15bd72d488a96b9cc95e94662dbc0
parentdbf69b7da49b64547ae3a0d54043c0d1f895a0fc
[release-branch.go1.16] 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.16 in order to fix a spurious test
failure in a subsequent change.

For #46144
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/+/319670
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/mod_readonly.txt