Skip to content

Use golangci-lint version 2 #11101

Description

@williammartin

Description

Some months ago golangci-lint released version 2. We should probably just move forward. Also, I think we should use golangci-lint action in our workflows rather than this weird old way of downloading the binary directly. See github-mcp-server for an example: https://github.com/github/github-mcp-server/blob/c423a52511d6a7c10947b42c5e8c3345aeaf7f96/.github/workflows/lint.yaml

It would probably help us move forward with #11015 as well because I don't really
want to dig into finding a golangci-lint version 1 that is built with 1.24.

Expected Output

The same linters are applied at minimum.

If I have golangci-lint version 2 installed locally, when I run golangci-lint run I see no errors.

The workflow uses golangci-lint action.

Activity

  1. linked a pull request that will close this issueBump golangci-lint to v2 #11121on Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions