gotestsum icon indicating copy to clipboard operation
gotestsum copied to clipboard

go install failed at version v1.12.3

Open tristoney opened this issue 6 months ago • 1 comments

go: downloading gotest.tools/gotestsum v1.12.3 [2025-06-23 16:54:24] go: gotest.tools/gotestsum@latest (in gotest.tools/[email protected]): go.mod:3: invalid go version '1.23.0': must match format 1.23

tristoney avatar Jun 23 '25 09:06 tristoney

it seems that lower version go complier do not support the declaration format like go 1.xx.x, my compile image go version is go 1.20, my project version is go 1.18

tristoney avatar Jun 23 '25 09:06 tristoney

Go only supports 2 major releases, so go1.24 and go1.23 are the only releases supported by the Go team.

Go 1.18 was end of life on 2023-02-01 when Go 1.20 was released.

If you need to use an old Go version for some reason I suggest using a pre-compiled binary release of gotestsum. You can find those here.

dnephin avatar Jul 08 '25 02:07 dnephin