Skip to content

rtk golangci-lint broken with golangci-lint v2 (injects removed --out-format flag) #596

Closed

Description

@bnema

Bug

rtk golangci-lint run ./... fails on golangci-lint v2 with a misleading error:

golangci-lint (JSON parse failed: EOF while parsing a value at line 1 column 0)

Running with -v shows that the wrapper injects --out-format=json, which was removed in golangci-lint v2:

Running: golangci-lint run --out-format=json
Error: unknown flag: --out-format

The subprocess exits before producing any JSON output, and rtk tries to parse the empty stdout, which causes the EOF parse error.

Running golangci-lint directly works fine:

$ /usr/bin/golangci-lint version
golangci-lint has version 2.11.3 built with go1.26.1

$ /usr/bin/golangci-lint run ./...
0 issues.

References

Environment

  • rtk: latest
  • golangci-lint: 2.11.3
  • OS: Linux

Activity

  1. added 2 commits that reference this issue on Mar 15, 2026
    183ddc3
    ee04933
  2. added
    duplicate
    filter-quality
    on Mar 20, 2026
  3. added
    duplicate
    filter-quality
    and removed
    duplicate
    filter-quality
    on Mar 20, 2026
  4. pszymkowiak commented on Mar 20, 2026

    @pszymkowiak
    Collaborator

    Closing as duplicate of #721. See the original issue for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicatefilter-qualitypriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions