Skip to content

🌱chore: Update golangci-lint version to v2.10.1#3470

Merged
k8s-ci-robot merged 4 commits into
kubernetes-sigs:mainfrom
dongjiang1989:update-golangci-linter-version
Mar 9, 2026
Merged

🌱chore: Update golangci-lint version to v2.10.1#3470
k8s-ci-robot merged 4 commits into
kubernetes-sigs:mainfrom
dongjiang1989:update-golangci-linter-version

Conversation

@dongjiang1989

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: dongjiang <dongjiang2010@gmail.com>
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 6, 2026
@sbueringer

Copy link
Copy Markdown
Member

Looks like the nolint's are somehow not working, maybe they have to be in different files somehow?

(https://github.com/kubernetes-sigs/controller-runtime/actions/runs/22764085086?pr=3470)

Comment thread .golangci.yml Outdated
# Allow 'version' as a package name even though it conflicts with Go 1.24+ stdlib
- linters:
- revive
path: tools/setup-envtest/version/.*\.go$

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe let's just use the nolint comments consistently for this one instead of also adding an exclude here?

@dongjiang1989 dongjiang1989 Mar 9, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sbueringer
Fixed
So many nolint add, just add in .golangci.yml

Signed-off-by: dongjiang <dongjiang2010@gmail.com>
Signed-off-by: dongjiang <dongjiang2010@gmail.com>
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 9, 2026
@sbueringer

Copy link
Copy Markdown
Member

Thx!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 9, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: ba7482cb487b43fbfa583c0aaf7007e65bf6e42c

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dongjiang1989, sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 9, 2026
@k8s-ci-robot k8s-ci-robot merged commit ea483b9 into kubernetes-sigs:main Mar 9, 2026
11 checks passed
@dongjiang1989 dongjiang1989 deleted the update-golangci-linter-version branch March 10, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants