News for hackers. Stuff that matters.
Re:Stop picking my Go version for me by Mawr on Sunday March 29, 2026 @01:31AM (#47560635)
> The version is the minimum version your project can be compiled with.

No, it's the minimum version my project is tested with.

> This means when you put a version like 1.25.7, you are deciding for everyone that imports you, transitively or directly, that they MUST be on Go 1.25.7+ to compile their project.

That is fine. This isn't Python or Java, you have no reason to ever be more than one version behind the current release. Just upgrade, it's painless.

> The fact that it defaults to the latest version is just a bad default that people should change.

Funny that: "cmd/go: change go mod init default go directive back to 1.N" https://github.com/golang/go/issues/77653

Re:Stop picking my Go version for me by howardjohn on Sunday March 29, 2026 @10:25AM (#47563424)
Thanks for the link! I could have sworn this was "fixed" and was surprised testing 1.26.1 showed the same (IMO bad) behavior! Didn't realize there was a revert. https://github.com/golang/go/issues/77923 looks like a hopeful path forward.