Skip to content

Conversation

@rudeigerc
Copy link
Member

What this PR does / why we need it

This pull request bumps golangci-lint version to v2. The config has been migrated via golangci-lint migrate suggested in https://golangci-lint.run/product/migration-guide/.

For developers, they may have to remove the binary in bin first if it already exists before running make lint.

Which issue(s) this PR fixes

Fixes #462

Special notes for your reviewer

https://github.com/kerthcet/github-workflow-as-kube/blob/61f946b54583a4cd632ce968b95aafc82d5aab73/.github/workflows/workflow-golang-ci.yaml#L12

The golangci-lint version defined in kerthcet/github-workflow-as-kube may also need to be updated. However, I am unsure whether this would affect other repositories. /cc @kerthcet

Does this PR introduce a user-facing change?


@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jul 1, 2025
@InftyAI-Agent InftyAI-Agent requested review from cr7258 and kerthcet July 1, 2025 04:13
@kerthcet
Copy link
Member

kerthcet commented Jul 2, 2025

I'll more inclined to adopt v2, I'll update the workflow project as well.

@kerthcet
Copy link
Member

kerthcet commented Jul 3, 2025

Hi @rudeigerc could you update the golang workflow version to v0.1.21?

    uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected]

@rudeigerc rudeigerc force-pushed the chore/golangci-lint-v2 branch from 406b14e to 0470259 Compare July 3, 2025 08:50
@rudeigerc
Copy link
Member Author

@kerthcet Updated :)

@kerthcet
Copy link
Member

kerthcet commented Jul 3, 2025

Everything seems working as expected, thanks!
/lgtm
/approve

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 3, 2025
@kerthcet
Copy link
Member

kerthcet commented Jul 3, 2025

/kind cleanup

@InftyAI-Agent InftyAI-Agent added cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jul 3, 2025
@InftyAI-Agent InftyAI-Agent merged commit 2bdc376 into InftyAI:main Jul 3, 2025
29 of 30 checks passed
@rudeigerc rudeigerc deleted the chore/golangci-lint-v2 branch July 3, 2025 09:11
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. cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

golangci-lint v1.63.4 failed to load config with Go 1.24

3 participants