Skip to content

Commit 493e620

Browse files
lint updated
1 parent 56b4bcf commit 493e620

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hack/run-lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ golangci::run_checks() {
4040
exit 1
4141
fi
4242

43-
GOT_VER=$(golangci-lint version --format=short 2>&1)
43+
GOT_VER=$(golangci-lint version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
4444
if [[ "v${GOT_VER}" != "${GOLANGCI_LINT_VERSION}" ]]; then
45-
echo -e "${RED}✗ golangci-lint version mismatch, expected ${GOLANGCI_LINT_VERSION}, available ${GOT_VER} ${NC}"
45+
echo -e "${RED}✗ golangci-lint version mismatch, expected ${GOLANGCI_LINT_VERSION}, available v${GOT_VER} ${NC}"
4646
exit 1
4747
fi
4848

0 commit comments

Comments
 (0)