]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.19] 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:34 +0000 (19:31 +0000)
commit1d85bcea2839f45047f58b5f442cdb728b97e00c
tree07b012db222925cbf7e9b9afa849e9c55c9c5532
parent3ba9c890b86dc8c3a54c98d32497b7a8012704f9
[release-branch.go1.19] 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 #60697.
Updates #60667.
Updates #56222.

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