Open gabolaev opened 8 months ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
the problem is related to 2 things: the cache, and the relative position between reports and the code.
somefile.go
inside the package somepackage
but the report is related to a function of another package (logger
).somepackage
somepackage
but logger
(and it's not a dependency).For now, I have no solution, I need to investigate more.
I found a solution.
Welcome
Description of the problem
Hi, we've encountered some strange behavior with the
govet
printf
linter.If we edit the previously reported file without fixing the issue, it stops reporting the issue. However, if we clean the cache, it gets back to normal, but I'm not sure we're supposed to clean the cache before every
run
.There is one interesting detail that I think may be a clue though. It stops being unstable if we change the code so that it doesn't import
logger
, but initializeslog
in place:Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
https://github.com/gabolaev/gl-issue-reproduction
Validation