Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: go.mod incompatible with older versions #71363

Closed
stevenh opened this issue Jan 21, 2025 · 2 comments
Closed

go: go.mod incompatible with older versions #71363

stevenh opened this issue Jan 21, 2025 · 2 comments

Comments

@stevenh
Copy link
Contributor

stevenh commented Jan 21, 2025

Go version

1.19

Output of go env in your module/workspace:

not available as its on CI.

What did you do?

CI runs a go install golang.org/x/tools/cmd/stringer@latest but after updating go modules with go 1.23 it updated go.mod with go 1.22.0 which seems to be incompatible with go 1.19.

As the modules update increased go requirement to 1.22 the fix is to actually update CI to use the new go version, but the error was unexpected so wanted to flag, in case others encounter.

What did you see happen?

go install fails with:

go: downloading golang.org/x/tools v0.29.0
go: golang.org/x/tools/cmd/stringer@latest (in golang.org/x/tools@v0.29.0): go.mod:3: invalid go version '1.22.0': must match format 1.23

What did you expect to see?

go install to work as expected.

@seankhliao
Copy link
Member

1.19 isn't a supported version.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2025
@zigo101
Copy link

zigo101 commented Jan 22, 2025

There are indeed some messes in the module/build system. That is a sad fact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants