]> Cypherpunks repositories - gostls13.git/commit
cmd/go: save zip sums for downloaded modules in 'go mod download' in a workspace
authorBryan C. Mills <bcmills@google.com>
Thu, 14 Jul 2022 18:44:21 +0000 (14:44 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 14 Jul 2022 19:12:55 +0000 (19:12 +0000)
commitb9d5a25442ff4df9080250dd4b0d62c565466cec
treeae05e4a672a858576c1ff02dfd512c59981280e0
parenta906d3dd099424ff17d7e46c4ecf793012d50197
cmd/go: save zip sums for downloaded modules in 'go mod download' in a workspace

Within a single module we expect all needed checksums to have already
been recorded by a previous call to 'go get' or 'go mod tidy' in that
module. However, when we combine multiple modules in a workspace, they
may upgrade each other's dependencies, so a given module might be
upgraded above the highest version recorded in the individual go.sum
files for the workspace modules.

Since the checksums might not be present in individual go.sum files,
record them in go.work.sum.

Fixes #51946.

Change-Id: Icb4ea874b9e5c5b1950d42650974a24b5d6543d4
Reviewed-on: https://go-review.googlesource.com/c/go/+/417654
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/download.go
src/cmd/go/testdata/script/work_why_download_graph.txt