Skip to content

False Positives in CI #6159

@andig

Description

@andig

Welcome

  • Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've read the typecheck section of the FAQ.
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
  • I agree to follow this project's Code of Conduct

How did you install golangci-lint?

Official GitHub Action

Description of the problem

Since 2.6.0 I'm seing various false positives: https://github.com/evcc-io/evcc/actions. I suspect golangci-lint since the positives include vet and gci, independent of any code changes. Latest example is https://github.com/evcc-io/evcc/actions/runs/18933135220/job/54053788167 where generated files are linted.

I did not try linters standalone since multiple affected and no code changes. I'm also- which is confusing- not able to replicate the errors locally with 2.6..0.

Version of golangci-lint

$ golangci-lint --version
# Paste output here

Configuration

# paste configuration file or CLI flags here

Go environment

$ go version && go env
# paste output here

Verbose output of running

prepare environment
  Checking for go.mod: go.mod
  Cache hit for: golangci-lint.cache-Linux-2913-405228c3a5ed00c4494c94858156e3b1fb7815c3
  Cache Size: ~0 MB (303045 B)
  /usr/bin/tar -xf /home/runner/work/_temp/53e6732d-1b2a-4561-91db-8e21a1d0e6a8/cache.tzst -P -C /home/runner/work/evcc/evcc --use-compress-program unzstd
  Cache restored successfully
  Restored cache for golangci-lint from key 'golangci-lint.cache-Linux-2913-405228c3a5ed00c4494c94858156e3b1fb7815c3' in 470ms
  Finding needed golangci-lint version...
  Requested golangci-lint 'latest', using 'v2.6.0', calculation took 36ms
  Installation mode: binary
  Installing golangci-lint binary v2.6.0...

A minimal reproducible example or link to a public repository

// add your code here

Validation

  • Yes, I've included all information above (version, config, etc.).

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions