]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.20] cmd/go: omit checksums for go.mod files needed for go version...
authorBryan C. Mills <bcmills@google.com>
Thu, 8 Jun 2023 21:55:55 +0000 (17:55 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 13 Jun 2023 19:31:43 +0000 (19:31 +0000)
commit8b3acefcbec3b861b8be9a37229a3d1329a9df1d
tree7b2015ddb18b3de708c7d2a740e8e2e8e4411369
parent1008486a9ff979dbd21c7466eeb6abf378f9c637
[release-branch.go1.20] cmd/go: omit checksums for go.mod files needed for go version lines more often in pre-1.21 modules

This updates the logic from CL 489075 to avoid trying to save extra
sums if they aren't already expected to be present
and cfg.BuildMod != "mod" (as in the case of "go list -m -u all" with
a go.mod file that specifies go < 1.21).

Fixes #60698.
Updates #60667.
Updates #56222.

Change-Id: Ied6ed3e80a62f9cd9a328b43a415a42d14481056
Reviewed-on: https://go-review.googlesource.com/c/go/+/502016
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_sum_issue56222.txt