Skip to content

Conversation

@skitt
Copy link
Member

@skitt skitt commented Dec 18, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Since utils requires Go 1.23, code specifically for older versions is no longer necessary.

golangci-lint needs bumping to 1.60.1 (or later) to support Go 1.23. This drops support for golint; that’s supposed to be replaced by revive, but switching to the latter would require fixing several issues. For the time being, this disables golint without replacing it.

This also switches to the golangci-lint action, the previous container approach was failing with 1.60.1.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Dec 18, 2025
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 18, 2025
@skitt
Copy link
Member Author

skitt commented Dec 18, 2025

/cc @dims

@k8s-ci-robot k8s-ci-robot requested a review from dims December 18, 2025 17:04
@skitt
Copy link
Member Author

skitt commented Dec 18, 2025

/retest

@skitt skitt force-pushed the cleanup-post-go-1.23 branch 8 times, most recently from da6e8e4 to 09c787b Compare December 19, 2025 14:05
This is required to support Go 1.23. Instead of manually running the
appropriate container, which now fails, use the golangci-lint action.

golint is now disabled, and causes an error if enabled. It’s supposed
to be replaced by revive but the latter finds several issues that need
fixing; for now, remove golint, we’ll address revive later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
Since utils requires Go 1.23, code specifically for older versions is
no longer necessary.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
@skitt skitt force-pushed the cleanup-post-go-1.23 branch from 09c787b to 66458b5 Compare December 19, 2025 14:06
@skitt skitt changed the title Remove obsolete Go-version-based alternatives Fix golangci-lint and remove obsolete Go-version-based alternatives Dec 19, 2025
@dims
Copy link
Member

dims commented Dec 20, 2025

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 20, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, skitt

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 Dec 20, 2025
@k8s-ci-robot k8s-ci-robot merged commit 9d40a56 into kubernetes:master Dec 20, 2025
14 checks passed
@skitt skitt deleted the cleanup-post-go-1.23 branch December 22, 2025 08:37
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. kind/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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants