Skip to content

Commit b8cf683

Browse files
committed
force golint to be installed
1 parent 6948133 commit b8cf683

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎git-hooks/pre-commit‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ check_go_vet() {
4343
}
4444

4545
check_make_lint() {
46+
if ! which golint > /dev/null 2>&1 ; then
47+
echo >&2 "golint is not installed"
48+
exit 1
49+
fi
4650
# Try the root dir. If that doesn't work, see if there's a go subdir.
4751
lint=$(make -s lint 2> /dev/null)
4852
if [ $? -eq 2 ] ; then

0 commit comments

Comments
 (0)