We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56b4bcf commit 493e620Copy full SHA for 493e620
1 file changed
hack/run-lint.sh
@@ -40,9 +40,9 @@ golangci::run_checks() {
40
exit 1
41
fi
42
43
- GOT_VER=$(golangci-lint version --format=short 2>&1)
+ GOT_VER=$(golangci-lint version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
44
if [[ "v${GOT_VER}" != "${GOLANGCI_LINT_VERSION}" ]]; then
45
- echo -e "${RED}✗ golangci-lint version mismatch, expected ${GOLANGCI_LINT_VERSION}, available ${GOT_VER} ${NC}"
+ echo -e "${RED}✗ golangci-lint version mismatch, expected ${GOLANGCI_LINT_VERSION}, available v${GOT_VER} ${NC}"
46
47
48
0 commit comments