-
Notifications
You must be signed in to change notification settings - Fork 3.4k
go.mod, renovate: specify and update Go toolchain version #27820
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
Conversation
ae59455
to
af6a864
Compare
/test |
/ci-runtime |
/test |
87ef862
to
e261c36
Compare
/test |
Pushed an additional commit to run the privileged runtime tests with the proper Go toolchain version. See commit message of the 1st commit for details. |
e261c36
to
cc4198c
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good as far as I can tell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Currently, the privileged runtime tests are built and run with whatever Go toolchain version the LVH images ship. To make sure these tests are run with the same Go toolchain version as the rest of the tests install a copy of that Go toolchain before running the test. Signed-off-by: Tobias Klauser <tobias@cilium.io>
According to [1] as of Go 1.21 we either need to specify the full toolchain version in the `go` directive or add a `toolchain` directive with the concrete toolchain version. Opt for the former and make sure it's kept up to date by renovate bot. [1] golang/go#62278 (comment) Signed-off-by: Tobias Klauser <tobias@cilium.io>
cc4198c
to
79387b0
Compare
/test |
Currently, the verifier tests are built and run with whatever Go toolchain version the LVH images ship. To make sure these tests are run with the same Go toolchain version as the rest of the tests install a copy of that Go toolchain before running the test. This wasn't caught in CI on #27820 because the verifier workflow wasn't run passed on the ariane exclusion list. Reported-by: Julian Wiedmann <jwi@isovalent.com> Signed-off-by: Tobias Klauser <tobias@cilium.io>
Currently, the verifier tests are built and run with whatever Go toolchain version the LVH images ship. To make sure these tests are run with the same Go toolchain version as the rest of the tests install a copy of that Go toolchain before running the test. This wasn't caught in CI on #27820 because the verifier workflow wasn't run passed on the ariane exclusion list. Reported-by: Julian Wiedmann <jwi@isovalent.com> Signed-off-by: Tobias Klauser <tobias@cilium.io>
I'm getting errors in my editor like this after merging this PR:
I've updated my local Go binary to v1.21.0 but that doesn't seem to help. EDIT: Looks like in might just be coc / coc.nvim / gopls not supporting micro versions..? No change updating gopls to v0.13.x. |
Without knowing your exact editor setup it's hard to tell what's wrong. I assume you're using some sort of Go integration like go-vim or similar? These extensions usually rely on various supporting tool binaries (e.g. gopls, linters etc). Could you try rebuilding these using Go 1.21 as well? Also cleaning all Go caches using |
👍 thanks for the tips. |
@tklauser why do we need to keep the patch version here in sync with upstream? Is this how we derive the Go version to install and build with in CI? Put another way, is it possible to keep the go.mod at 1.21.0 until we migrate to 1.22? |
@joestringer the idea here was to keep up with the latest patch version in case anything (e.g. CI) or anyone is relying on |
[ upstream commit bb3eec4 ] Currently, the verifier tests are built and run with whatever Go toolchain version the LVH images ship. To make sure these tests are run with the same Go toolchain version as the rest of the tests install a copy of that Go toolchain before running the test. This wasn't caught in CI on #27820 because the verifier workflow wasn't run passed on the ariane exclusion list. Reported-by: Julian Wiedmann <jwi@isovalent.com> Signed-off-by: Tobias Klauser <tobias@cilium.io> Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
[ upstream commit bb3eec4 ] Currently, the verifier tests are built and run with whatever Go toolchain version the LVH images ship. To make sure these tests are run with the same Go toolchain version as the rest of the tests install a copy of that Go toolchain before running the test. This wasn't caught in CI on #27820 because the verifier workflow wasn't run passed on the ariane exclusion list. Reported-by: Julian Wiedmann <jwi@isovalent.com> Signed-off-by: Tobias Klauser <tobias@cilium.io> Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
According to [1] as of Go 1.21 we either need to specify the full toolchain version in the
go
directive or add atoolchain
directive with the concrete toolchain version. Opt for the former and make sure it's kept up to date by renovate bot.[1] golang/go#62278 (comment)