Skip to content

Conversation

elevran
Copy link
Contributor

@elevran elevran commented Jul 29, 2025

This updates the linting to v2.3.0 (latest) instead of the current v1.62.2 (latest v1.x is v1.64.8).

  • configuration file updated to v2 using built-in golangci-lint migrate. Since the timeout value is not longer supported in the configuration file, added 5m timeout explicitly to Makefile target (the CI target already had a timeout set).
  • Makefile updated to download and install v2.3.0 (note: golangci-lint switched to semantic package versioning so path reflected accordingly. While extraction of v2 from version and its addition to the package path could be automated - does not seem worth the effort. v3.x is likely far enough in the future).
  • fixed errors across files in project based on the v2 linters finding.

Fix #1240

elevran added 2 commits July 29, 2025 14:44
Signed-off-by: Etai Lev Ran <[email protected]>
Signed-off-by: Etai Lev Ran <[email protected]>
Copy link

netlify bot commented Jul 29, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 45db9d4
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/6888b5f84c264800084f9b39
😎 Deploy Preview https://deploy-preview-1256--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 29, 2025
@k8s-ci-robot k8s-ci-robot requested review from danehans and kfswain July 29, 2025 11:52
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 29, 2025
@kfswain
Copy link
Collaborator

kfswain commented Jul 29, 2025

/lgtm
/approve

TY for taking the time to do this!

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elevran, kfswain

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

The pull request process is described here

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 Jul 29, 2025
@k8s-ci-robot k8s-ci-robot merged commit 62f9431 into kubernetes-sigs:main Jul 29, 2025
9 checks passed
@elevran elevran deleted the golangci-lint-v2.x-update branch July 29, 2025 15:57
kfswain pushed a commit to kfswain/llm-instance-gateway that referenced this pull request Jul 31, 2025
* update golangci-lint to v2

Signed-off-by: Etai Lev Ran <[email protected]>

* fix v2 lint issues

Signed-off-by: Etai Lev Ran <[email protected]>

---------

Signed-off-by: Etai Lev Ran <[email protected]>
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/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.

Upgrade golangci-lint to a newer version
3 participants