Closed hrak closed 3 months ago
Staticcheck currently requires at least Go 1.22.1. You're using Go 1.19, which is not supported.
Looks like the version in go.mod should not be major.minor.patch but major.minor.
This changed several versions ago. See https://tip.golang.org/doc/toolchain#version.
Ah sorry, that makes total sense. Sorry for the noise, it was Monday morning clearly :)
A
go install honnef.co/go/tools/cmd/staticcheck@latest
returns the following: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