siderolabs / conform

Policy enforcement for your pipelines.
Mozilla Public License 2.0
432 stars 45 forks source link

invalid go version '1.22.0': must match format 1.23 #251

Open chaksn opened 8 months ago

chaksn commented 8 months ago

Issue Summary: Encountering an error when attempting to install github.com/siderolabs/conform at version v0.1.0-alpha.28, while no such issue exists with version v0.1.0-alpha.27. Using Go version 1.13.

Expected Behavior: Expecting to successfully install and use version v0.1.0-alpha.28 of github.com/siderolabs/conform.

Actual Behavior: go install: github.com/siderolabs/conform/cmd/conform@latest (in github.com/siderolabs/conform@v0.1.0-alpha.28): go.mod:3: invalid go version '1.22.0': must match format 1.23

Additional Information: Go version: 1.13 No such issue encountered with version v0.1.0-alpha.27.

Screenshot 2024-02-25 at 8 25 07 AM

frezbo commented 8 months ago

Go 1.13 is too old to support new conform (basically newer go.mod patch version support)

heismehrab commented 7 months ago

I have the same error with Golang version 1.22.0 linux/amd64 . Any updates?

frezbo commented 7 months ago

I have the same error with Golang version 1.22.0 linux/amd64 . Any updates?

not sure what's the issue, works for me:


❯ go install github.com/siderolabs/conform/cmd/conform@latest
go: downloading github.com/siderolabs/conform v0.1.0-alpha.30
~ took 5s119ms 
❯ go version
go version go1.22.0 linux/amd64
~ 
❯ 
~ 
heismehrab commented 7 months ago

It's strange, I cannot figure out the problem. I appreciate it if you share your ideas about it:

$ sudo go install github.com/siderolabs/conform/cmd/conform@latest

go: github.com/siderolabs/conform/cmd/conform@latest (in github.com/siderolabs/conform@v0.1.0-alpha.30): go.mod:3: invalid go version '1.22.0': must match format 1.23

in go.mod i set version 1.22

module bluh

go 1.22
heismehrab commented 7 months ago

Fixed, there was a problem with Go cache and it went well after cleaning the cache, Thanks.

Dileesha-abilash commented 6 months ago

just changing the version in go.mod file works 1.xx.x to 1.xx

stephenwhy commented 1 month ago

just changing the version in go.mod file works 1.xx.x to 1.xx

Oh, my God, it works, but I don't see why it should work

njupt99lee commented 3 weeks ago

just changing the version in go.mod file works 1.xx.x to 1.xx

it works but why?