Skip to content

chore: replace interface{} with any and enforce use-any lint rule#189

Merged
tiraboschi merged 1 commit into
openshift-virtualization:mainfrom
tiraboschi:any
May 20, 2026
Merged

chore: replace interface{} with any and enforce use-any lint rule#189
tiraboschi merged 1 commit into
openshift-virtualization:mainfrom
tiraboschi:any

Conversation

@tiraboschi
Copy link
Copy Markdown
Collaborator

Enable the revive use-any rule in .golangci.yml and replace all interface{} occurrences with any across the codebase.

Also derive GOTOOLCHAIN and ENVTEST_K8S_VERSION from go.mod at runtime in the Makefile, and add GOTOOLCHAIN to the lint target to work around a golangci-lint panic caused by k8s.io v0.36 dependencies declaring go 1.26.

Enable the revive use-any rule in .golangci.yml and replace all
interface{} occurrences with any across the codebase.

Also derive GOTOOLCHAIN and ENVTEST_K8S_VERSION from go.mod at runtime
in the Makefile, and add GOTOOLCHAIN to the lint target to work around
a golangci-lint panic caused by k8s.io v0.36 dependencies declaring go 1.26.

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
@tiraboschi
Copy link
Copy Markdown
Collaborator Author

/approve

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 20, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tiraboschi

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

@tiraboschi tiraboschi merged commit 2fe247a into openshift-virtualization:main May 20, 2026
6 of 7 checks passed
@tiraboschi tiraboschi deleted the any branch May 20, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant