-
-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
Description
feature request
I need to allow version syntax 1.N.P
problem
Since go 1.21.0, go mod init generates the following go.mod:
module example
go 1.21.0
If I run staticcheck in this state, I get the following error:
invalid Go version: "1.21.0"
FYI: https://go.dev/doc/toolchain#versions
my environment
❯ go version
go version go1.21.0 darwin/arm64
❯ staticcheck -version
staticcheck 2023.1.3 (v0.4.3)
❯ staticcheck -debug.version
staticcheck 2023.1.3 (v0.4.3)
Compiled with Go version: go1.21.0
Main module:
honnef.co/go/[email protected] (sum: h1:o/n5/K5gXqk8Gozvs2cnL0F2S1/g1vcGCAx2vETjITw=)
Dependencies:
github.com/BurntSushi/[email protected] (sum: h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=)
golang.org/x/exp/[email protected] (sum: h1:Jw5wfR+h9mnIYH+OtGT2im5wV1YGGDora5vTv/aa5bE=)
golang.org/x/[email protected] (sum: h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA=)
golang.org/x/[email protected] (sum: h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=)
golang.org/x/[email protected] (sum: h1:9ZNWAi4CYhNv60mXGgAncgq7SGc5qa7C8VZV8Tg7Ggs=)
alexedwards