-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
✨Upgrade Golang version to v1.24.0 #4585
base: master
Are you sure you want to change the base?
✨Upgrade Golang version to v1.24.0 #4585
Conversation
Signed-off-by: dongjiang <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dongjiang1989 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @dongjiang1989! |
Hi @dongjiang1989. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: dongjiang <[email protected]>
/ok-to-test |
.golangci.yml
Outdated
- path: _test\.go|test_context.go | ||
linters: | ||
- revive | ||
text: "dot-imports: should not use dot imports" |
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.
Why have we this change?
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.
When golangci-lint
to v1.64.5, some warning
$ golangci-lint --version
golangci-lint has version v1.64.5 built with go1.24.0 from (unknown, modified: ?, mod sum: "h1:5omC86XFBKXZgCrVdUWU+WNHKd+CWCxNx717KXnzKZY=") on (unknown)
$ golangci-lint run
pkg/plugin/util/util_test.go:23:2: dot-imports: should not use dot imports (revive)
. "github.com/onsi/ginkgo/v2"
^
pkg/plugin/util/util_test.go:24:2: dot-imports: should not use dot imports (revive)
. "github.com/onsi/gomega"
^
pkg/plugin/util/suite_test.go:22:2: dot-imports: should not use dot imports (revive)
. "github.com/onsi/ginkgo/v2"
.github/workflows/lint.yml
Outdated
@@ -26,7 +26,7 @@ jobs: | |||
- name: Run linter | |||
uses: golangci/golangci-lint-action@v6 | |||
with: | |||
version: v1.63.4 | |||
version: v1.64.5 |
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.
Could we open a PR for upgrade the lint and another for the Go
We also need check all places for the linter
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.
Thanks @camilamacedo86
I got it
Will change it in next PR
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.
Thank you a lot for check this one !!!!
Signed-off-by: dongjiang <[email protected]>
@camilamacedo86 How to change golang version here? Maybe change prow image |
We will need to update the the test-infra: http://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/kubebuilder/kubebuilder-presubmits.yaml#L14 Feel free to push a PR and ping me. |
@dongjiang1989: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
I saw that you open the PR there as well. |
Just for we keep tracked here: |
Let's bump controller-runtime latest release which still uses 1.23 : https://github.com/kubernetes-sigs/controller-runtime/blob/v0.20.3/go.mod Do a patch release, and then I think we might can move forward with this one. |
Thanks @camilamacedo86 Patch it to controller-runtime v0.20.x? |
Upgrade go version 1.23 to 1.24