invalid go version '1.23.0': must match format 1.23
I'm getting the following error on go install .:
$ git clone https://github.com/FreifunkBremen/yanic
$ cd yanic
$ go install .
go: golang.org/x/[email protected]: parsing go.mod: go.mod:3: invalid go version '1.23.0': must match format 1.23
I'm using the Go version as provided by Debian Bullseye:
$ go version
go version go1.15.15 linux/amd64
$ dpkg -l | grep golang
ii golang:amd64 2:1.15~1 amd64 Go programming language compiler - metapackage
ii golang-1.15 1.15.15-1~deb11u4 all Go programming language compiler - metapackage
ii golang-1.15-doc 1.15.15-1~deb11u4 all Go programming language - documentation
ii golang-1.15-go 1.15.15-1~deb11u4 amd64 Go programming language compiler, linker, compiled stdlib
ii golang-1.15-src 1.15.15-1~deb11u4 amd64 Go programming language - source files
ii golang-doc 2:1.15~1 all Go programming language - documentation
ii golang-go 2:1.15~1 amd64 Go programming language compiler, linker, compiled stdlib
ii golang-src:amd64 2:1.15~1 amd64 Go programming language - source files
Probably related to this: https://github.com/siderolabs/conform/issues/251#issuecomment-2523243166
Installing and using the Go version as described in the INSTALL.md works though. But not quite sure why, because 1.13.1 seems even older than the one provided by Debian. Maybe 1.13.1 backported that fix and the one in Debian didn't?
After updating the system to Debian Bookworm and updating Go to the version provided by bookworm-backports (1.23.5) this works now.
It would be nice if https://github.com/FreifunkBremen/yanic/blob/main/INSTALL.md listed the minimum, required Go version. And the referenced 1.13.1 seems outdated?
But other than that, I guess this ticket can be closed.
The documentation is outdated, that is correct. Sorry for not updating that correctly.
Nowadays the minimum suggestion version is called in go.mod.
The Stable-Version of golang is minimum 1.23.10: https://endoflife.date/go .
If we compare it with debian released version: https://packages.debian.org/search?searchon=names&keywords=golang:
- bookworms (stable): 1.19
- bookworm-backports: 1.23
- trixie (testing): 1.24
So 1.19 is too old on a view of golang itself, but we should support 1.23 latest stable.
Now the question how to manage this problem now, i see the following "good" solutions:
- downgrade to 1.23 (and update docs to that, maybe with announce that on debian is current backport needed)
- keep it and documentation that on debian a maybe a testing or manuell install is needed because of the slow updates on debian
- keep it but take an eye on next relased to use the oldest supported minor version.