-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linter crashes with panic #1973
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, The problem seems related to |
This comment has been minimized.
This comment has been minimized.
I've also seen some other panics that seem to be fixed by not running
|
This comment has been minimized.
This comment has been minimized.
It's related to the same problem as nilness, the important information is 2 "passes" are affected by this problem: FYI I know the root cause of all those panics. |
This comment has been minimized.
This comment has been minimized.
The root cause is It only happens when the so the workaround: govet:
enable-all: true
disable:
- sigchanyzer |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Back to the main topic, the problem is in I think it's because it alters the AST. |
I will open an issue and a PR on https://github.com/golang/tools. A minimal reproducible example: main.gopackage main
import (
"os"
"os/signal"
"syscall"
)
func main() {
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
go func() {
<-c
}()
} .golangci.ymllinters-settings:
govet:
disable-all: true
enable:
- nilness
- sigchanyzer
linters:
disable-all: true
enable:
- govet |
@ldez thank you very much for fast replies! your workaround works, thx
|
Description of the problem
linter crashes on OpenDiablo2 project.
here is a workflow run, which reproduces this behavior
Version of golangci-lint
Config file
Go environment
Verbose output of running
Code example or link to a public repository
https://github.com/OpenDiablo2/OpenDiablo2
The text was updated successfully, but these errors were encountered: