Skip to content

Upgrade golangci-lint from v1 to v2#92

Open
sebrandon1 wants to merge 1 commit intoopenshift:mainfrom
sebrandon1:golangci-lint-v2-upgrade
Open

Upgrade golangci-lint from v1 to v2#92
sebrandon1 wants to merge 1 commit intoopenshift:mainfrom
sebrandon1:golangci-lint-v2-upgrade

Conversation

@sebrandon1
Copy link
Member

Summary

  • Update golangci-lint from v1.61.0 to v2.0.2
  • Migrate .golangci.yml to v2 format

Changes Made

  • Makefile: Updated version variable
  • .golangci.yml: Converted to v2 format
    • Added version: "2" declaration
    • Moved gofmt to formatters.enable

Test plan

  • CI linting passes with golangci-lint v2
  • No new linting errors introduced

Tracking: redhat-best-practices-for-k8s/telco-bot#49

- Update GOLANGCI_LINT_VERSION from 1.61.0 to 2.0.2
- Migrate .golangci.yml to v2 format:
  - Add version: "2" declaration
  - Move gofmt to formatters.enable section

Tracking: redhat-best-practices-for-k8s/telco-bot#49
@openshift-ci openshift-ci bot requested review from alkleinrh and andymcc January 16, 2026 19:09
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 16, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign r4f4 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 16, 2026

@sebrandon1: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/verify-commits ba1f1c0 link false /test verify-commits

Full PR test history. Your PR dashboard.

Details

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant