]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: allow toolchain upgrades in 'go mod download' when we would already allow...
authorBryan C. Mills <bcmills@google.com>
Wed, 8 Nov 2023 17:33:10 +0000 (12:33 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 8 Nov 2023 19:32:39 +0000 (19:32 +0000)
commit1cc19e5ba0a008df7baeb78e076e43f9d8e0abf2
tree1a04618439ab2dca3719eab5a6878b541c531298
parent15d985a67529c45dcaad07461611e9a029c662f6
cmd/go: allow toolchain upgrades in 'go mod download' when we would already allow go.mod updates

This fixes an inconsistency that was introduced in CL 537480 and noted
in the review on CL 539697.

In particular, 'go mod download' already updates the go.mod file when
other kinds of updates are needed. (#45551 suggested that it should
not do so, but that part of the change was not implemented yet;
finishing that change is proposed as #64008.)

Updates #62054.

Change-Id: Ic659eb8538f4afdec0454737e982d42ef8957e56
Reviewed-on: https://go-review.googlesource.com/c/go/+/540779
Auto-Submit: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modcmd/download.go
src/cmd/go/testdata/script/gotoolchain_modcmds.txt
src/cmd/go/testdata/script/mod_download_exec_toolchain.txt