From 66d271860cf778ea5570977234e3169c44500735 Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Thu, 14 Aug 2025 09:16:02 +0200 Subject: [PATCH] _content/ref/mod: adding a toolchain directive only applies to Go <= 1.24 Since Go 1.25 this is no longer the case. See also https://go.dev/doc/go1.25#go-command. For golang/go#65847 --- _content/ref/mod.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_content/ref/mod.md b/_content/ref/mod.md index c75a60ca3b..04c6a4f9c6 100644 --- a/_content/ref/mod.md +++ b/_content/ref/mod.md @@ -632,8 +632,9 @@ The `toolchain` directive only has an effect when the module is the main module and the default toolchain's version is less than the suggested toolchain's version. -For reproducibility, the `go` command writes its own toolchain name in a `toolchain` line any time -it is updating the `go` version in the `go.mod` file (usually during `go get`). +For Go <= 1.24, the `go` command writes its own toolchain name in a `toolchain` line any time +it is updating the `go` version in the `go.mod` file (usually during `go get`) for reproducibility. +As of Go 1.25 this is no longer the case. For details, see “[Go toolchains](/doc/toolchain)”.