This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

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 init will 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 mymod with a 1.26 toolchain and inspect the generated go.mod to 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