incu6us / goimports-reviser

Right imports sorting & code formatting tool (goimports alternative)
MIT License
599 stars 72 forks source link

error message in go version 1.21.0 #127

Closed crazytaxi824 closed 1 year ago

crazytaxi824 commented 1 year ago

in go 1.21.0, $ go mod init foo will create a go.mod file with go 1.21.0 in it, instead of go 1.21. in this case, goimports-reviser will show an error message:

go.mod:3: invalid go version '1.21.0': must match format 1.23
incu6us commented 1 year ago

this is an issue related to go: https://github.com/golang/go/issues/61851