]> Cypherpunks repositories - gostls13.git/commit
cmd/go: adjust conditions in which toolchain lines are written
authorBryan C. Mills <bcmills@google.com>
Fri, 2 Jun 2023 03:42:48 +0000 (23:42 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 2 Jun 2023 22:42:42 +0000 (22:42 +0000)
commitc292a74c389aed9cab01d435a8f8cb4bfb087544
treef268c438f6c42fc3ecb09b8f00f6f32ef3d877c2
parent6260049fa2973dea717c748e0609c4143cfd70eb
cmd/go: adjust conditions in which toolchain lines are written

'go mod tidy -go=1.20' should tidy as Go 1.20 did, without writing a
toolchain line implicitly. (We don't need it to stabilize toolchain
version switching anyway: because Go 1.20 predates toolchain
switching, any toolchain that supports switching toolchains also
supports Go 1.20 modules directly.)

For #57001.

Change-Id: I415abac75d8d6de9f8ed470aab0d1ed4c225b08d
Reviewed-on: https://go-review.googlesource.com/c/go/+/499987
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/script/mod_tidy_version.txt
src/cmd/go/testdata/script/mod_toolchain.txt