-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
bugSomething isn't workingSomething isn't workinggithub_actionsPR that update Github_actions codePR that update Github_actions codewaiting for: contributor feedbackRequires additional feedbackRequires additional feedback
Description
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
typechecksection 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 hereConfiguration
# paste configuration file or CLI flags hereGo environment
$ go version && go env
# paste output hereVerbose 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 hereValidation
- Yes, I've included all information above (version, config, etc.).
Supporter
- I am a sponsor/backer through GitHub or OpenCollective
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggithub_actionsPR that update Github_actions codePR that update Github_actions codewaiting for: contributor feedbackRequires additional feedbackRequires additional feedback