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 directive in go.mod is invalid #822

Open
mauri870 opened this issue Jul 4, 2024 · 0 comments
Open

Go directive in go.mod is invalid #822

mauri870 opened this issue Jul 4, 2024 · 0 comments

Comments

@mauri870
Copy link

mauri870 commented Jul 4, 2024

According to https://go.dev/issues/62278 a concrete go version has to include the
patch number or an additional toolchain directive. The project declares the version
as 1.22 which is invalid and will result in an error.

GOTOOLCHAIN="go1.21+auto" go1.22.4 mod tidy
go: downloading go1.22 (linux/amd64)
go: download go1.22 for linux/amd64: toolchain not available

We should change it to go 1.22.0 as this is the first actual release of go 1.22. Another option is to specify a toolchain directive:

go 1.22
toolchain go1.22.0
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

1 participant