Radar · Go · Archive · Week 10 · Mar 2 – 8, 2026
cmd/go: change `go mod init` default go directive back to 1.N
Worth knowingtooling
- What changed
- The default go directive for
go mod initwill revert to using the running toolchain’s version (1.N.M) instead of the previous 1.(N‑1).0. - Production impact
- The source does not say.
- Try it
- Run
go mod init mymodwith a 1.26 toolchain and inspect the generatedgo.modto verify the go directive is 1.26. - Source
- github.com/golang/go/issues/77653
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed