Skip to content

Commit 66d2718

Browse files
committed
_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
1 parent 44fd2e7 commit 66d2718

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_content/ref/mod.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,9 @@ The `toolchain` directive
632632
only has an effect when the module is the main module and the default toolchain's
633633
version is less than the suggested toolchain's version.
634634

635-
For reproducibility, the `go` command writes its own toolchain name in a `toolchain` line any time
636-
it is updating the `go` version in the `go.mod` file (usually during `go get`).
635+
For Go <= 1.24, the `go` command writes its own toolchain name in a `toolchain` line any time
636+
it is updating the `go` version in the `go.mod` file (usually during `go get`) for reproducibility.
637+
As of Go 1.25 this is no longer the case.
637638

638639
For details, see “[Go toolchains](/doc/toolchain)”.
639640

0 commit comments

Comments
 (0)