Skip to content

Commit

Permalink
fix: make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Jun 5, 2024
1 parent 3936e44 commit f682029
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions hack/linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ then
exit 0
fi

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

linterVersion="$(golangci-lint --version | awk '{print $4}')"

expectedLinterVersion=1.50.1

if [ "${linterVersion}" != "${expectedLinterVersion}" ]; then
echo "Install GolangCI-Lint version ${expectedLinterVersion}"
if [[ ! "${linterVersion}" =~ ^1\.5[89] ]]; then
echo "Install GolangCI-Lint version 1.58 or 1.59"
exit 1
fi

Expand Down

0 comments on commit f682029

Please sign in to comment.