]> Cypherpunks repositories - gostls13.git/commit
cmd/go: update goSum if necessary
authorIan Alexander <jitsu@google.com>
Fri, 12 Sep 2025 22:00:02 +0000 (18:00 -0400)
committerIan Alexander <jitsu@google.com>
Sat, 8 Nov 2025 12:26:29 +0000 (04:26 -0800)
commite8ed85d6c22d9530523315c3048ed0455d205bff
treeee47412c891abcc88d63cb3c6337eef3d56f5a26
parentb76103c08e72ac34db2092d2cf1a3c1ec6adf451
cmd/go: update goSum if necessary

During investigation into #74691, we found a case where the hash was
missing from the goSum global var.  This change updates DownloadZip to
update the goSum hash if necessary when both the zipfile and
ziphashfile are already present.

For #74691

Change-Id: I904b7265f667256d0c60b66503a7954b467c6454
Reviewed-on: https://go-review.googlesource.com/c/go/+/705215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Matloob <matloob@google.com>
src/cmd/go/internal/modfetch/fetch.go