News for hackers. Stuff that matters.
Re:Go automatically downloads a newer toolchain if needed by kokada on Tuesday August 20, 2024 @08:14AM (#41299316)
Author here.

This doesn't make sense. The toolchain will be updated only IF you say your project only runs in Go >= XX. This is what `go` directive in `go.mod` says: my projects doesn't work in versions of Go older than this. This is why it happened to me, I declared I need `go 1.23` because of range-over-func, and the toolchain respected my wishes.

This is not an "enforcing you to use the latest Go version, even if you don't wish for it".

There are no comments on this comment yet.