]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] cmd/go: allow 'go mod download' to switch toolchains if calle...
authorBryan C. Mills <bcmills@google.com>
Wed, 30 Aug 2023 14:06:00 +0000 (10:06 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 9 Nov 2023 21:37:26 +0000 (21:37 +0000)
commit4952f41180715a260e566a89557c780ac2ab5fc4
tree42b38b3a504eb54d95998a498b9d7ff7efa009c1
parentf26fa055229502fb6df4b6d9c300eccf01098248
[release-branch.go1.21] cmd/go: allow 'go mod download' to switch toolchains if called with explicit arguments

Fixes #62055.
Updates #62054.

Change-Id: I4ea24070f7d9aa4964c2f215836602068058f718
(cherry picked from CL 540779 and CL 537480)
Reviewed-on: https://go-review.googlesource.com/c/go/+/539697
Auto-Submit: Heschi Kreinick <heschi@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 [new file with mode: 0644]
src/cmd/go/testdata/script/mod_get_future.txt