SSA and generics (go1.18)
Currently, SSA is not working with generics.
So your linter produces a panic when it is used with generics.
There is an issue open about that in the Go repository: https://github.com/golang/go/issues/48525
Inside golangci-lint, we have disabled your linters: https://github.com/golangci/golangci-lint/issues/2649
You have 2 solutions:
- waiting for a version of SSA that will support generics
- dropping the SSA analyzers and using something else to analyze the code.
Related to https://github.com/golang/go/issues/50558
SSA has been updated and it seems to work inside golangci-lint.
in fact the problem is still here
I did some more extensive testing and the issue seems to be resolved.
https://github.com/golangci/golangci-lint/issues/3086
PR #41 fixes this, tested with the case in https://github.com/golangci/golangci-lint/issues/3086
~/chconn$ go vet -vettool=$(which bodyclose) ./...
~/chconn$
Yes that's no output all good :)