Skip to content

Go install returns invalid go version '1.22.1': must match format 1.23 #1592

@hrak

Description

@hrak

A go install honnef.co/go/tools/cmd/staticcheck@latest returns the following:

03:44:42  0.638 go: downloading honnef.co/go/tools v0.5.1
03:44:42  1.071 go: honnef.co/go/tools/cmd/staticcheck@latest (in honnef.co/go/[email protected]): go.mod:3: invalid go version '1.22.1': must match format 1.23

Seems to be similar to this issue. Looks like the version in go.mod should not be major.minor.patch but major.minor.

Latest is currently at commit 915b568
This is in our CI which uses the latest docker.io/library/golang:1.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions