-
Notifications
You must be signed in to change notification settings - Fork 356
Invalid Go toolchain version #2868
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
Comments
You are right, that is even valid from 1.23 onward (see this comment). We have a draft PR addressing that, but we haven't picked it up in some time. We're discussing picking it up again 👍 |
redsun82
pushed a commit
to github/codeql
that referenced
this issue
Apr 24, 2025
This diagnostic was introduced by #15979. However in the meantime the Go team [has backtracked](golang/go#62278 (comment)) on their decision, which leads to confusing alerts for user (e.g. github/codeql-action#2868). Even using Go toolchains from 1.21 to 1.22 we weren't immediately able to reproduce the problem that this diagnostics was meant to guard against. Therefore it was deemed simpler to just remove it. _En passant_ the `Makefile` now accepts `rtjo` not being set.
@stevehipwell after an internal discussion we decided to drop this alert entirely, which was done in github/codeql#19370. This will be released in version 2.21.2 which should get released at the end of next week. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AFAIK since Go 1.24 using the format
go 1.N
(e.g.go 1.24
) in go.mod is a valid alias for the latest version but when this pattern is used without thetoolchain
directive being explicitly set in the go.mod we're getting the "Invalid Go toolchain version" error.The text was updated successfully, but these errors were encountered: