From a5dbb1a5298824901d8c6e583145e40559764b52 Mon Sep 17 00:00:00 2001 From: Doug Gschwind Date: Tue, 5 Sep 2023 09:05:32 -0700 Subject: [PATCH] fix: have golangci-lint report its version --- hooks/golang/golangci-lint-common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hooks/golang/golangci-lint-common.sh b/hooks/golang/golangci-lint-common.sh index c545c11..876e55f 100755 --- a/hooks/golang/golangci-lint-common.sh +++ b/hooks/golang/golangci-lint-common.sh @@ -2,6 +2,10 @@ # There's a ton of available linters: https://golangci-lint.run/usage/linters # We're using a large subset in addition to the defaults lint_all() { + ## Lets first report what version of golangi-lint is being run since it will + ## not otherwise provide that information. + golangci-lint --version + golangci-lint run \ --allow-parallel-runners \ --fix \