Skip to content

golangBuild: support linting of golang > 1.24 #5461

@sku-sku

Description

@sku-sku

We would like to use golang v.125 in our piper based go builds.

The linting of golandBuild is using "--out-format" which has been replaced in v2 of golangci-lint.

According to golangci-lint release docs, version > v2.4.0 has to be used to support golang v1.25.

In our piper based golang builds, we get:

golangBuild - running command: /go/bin/golangci-lint run --out-format checkstyle
golangBuild - Error: unknown flag: --out-format

Please add support for newer versions of golang-lint by supporting v2.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    stalemarks stale issues and pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions