Re:Go 1.21 will (probably) download newer toolchains on dema...
by TheDong on Saturday June 24, 2023 @07:21AM
(#36457677)
I've had quite a few issues with go version updates.
I've written up a couple over here: https://news.ycombinator.com/item?id=29763324
There's more than that. What I really want is to be able to update the compiler without also updating the standard library since the compiler has been fairly solid, while the http, tls, and archive stdlib packages have been a constant source of breaking changes and bugs with each update.
I'd rather be able to update my compiler without also having to cross my fingers that they didn't decide to yet again delete support for some part of TLS I'm using that those on high at google have deemed is "insecure", even if it's in a test or over a local network.
Re:Go 1.21 will (probably) download newer toolchains on dema...
by agwa on Saturday June 24, 2023 @10:04AM
(#36458776)
Beginning Go 1.21, the version in go.mod will control behavior in the standard library, so that you can upgrade the compiler/stdlib and not have your programs break: https://tip.golang.org/doc/godebug
Go is over a decade old. I’ve been using it for 8 or 9 years now and entirely concur with GP. As an example, I have routinely deployed to prod for lower stakes stuff using CI Go versions that didn’t match development. Aside from needing new features this has never caused an issue. I’ve had more issues arise from OS updates than Go toolchain updates.