How can i see the the version of linter #4049
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There may be better ways, but this may prove useful until you get a better answer. For the examples below, assume that you want to determine what version of the Check your installed binaryRun $ go version -m $(which golangci-lint).exe | grep gosec
dep github.com/securego/gosec/v2 v2.17.0 h1:ZpAStTDKY39insEG9OH6kV3IkhQZPTq9a9eGOLOjcdI= The version of golangci-lint installed on my system includes v2.17.0 of the gosec linter. Check go.modEach golangic-lint release is associated with a tag. Determine what version you're troubleshooting and consult that tag. For this example, we're looking at the Tag links:
$ curl --silent https://raw.githubusercontent.com/golangci/golangci-lint/v1.54.2/go.mod | grep gosec
github.com/securego/gosec/v2 v2.17.0 FWIW: v2.17.0 of the |
Beta Was this translation helpful? Give feedback.
You just have to run
golangci-lint version --debug
ex: