]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix two-step toolchain upgrade through go install, GOTOOLCHAIN
authorRuss Cox <rsc@golang.org>
Wed, 18 Dec 2024 20:42:48 +0000 (15:42 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 19 Dec 2024 16:12:29 +0000 (08:12 -0800)
commitcb72406c36e5c39c049fd150d65be67372ba60e2
tree211c6a129d0f10e65fa754f2699400a4e56426ba
parent4f0561f9d354233787de7aa9eff8119a2d4cd5c6
cmd/go: fix two-step toolchain upgrade through go install, GOTOOLCHAIN

If we do one upgrade because of a go install target's go.mod file,
we still might need a second upgrade to implement the GOTOOLCHAIN
minimum. Instead of allowing a two-step switch (which we were
cutting off anyway), skip the first step and go straight to the
GOTOOLCHAIN min upgrade.

Fixes #69051.

Change-Id: I16f060f473574d8b8f84c55fae2fd0cdabc8aa19
Reviewed-on: https://go-review.googlesource.com/c/go/+/637496
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/toolchain/select.go
src/cmd/go/testdata/script/gotoolchain_local.txt