From 741873adbec553ddd703ab33efde53a00c8d9891 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 28 Sep 2016 20:53:29 +0200 Subject: [PATCH] Makefile: suggests install.tools Signed-off-by: Antonio Murdaca --- .tool/lint | 5 ----- Makefile | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.tool/lint b/.tool/lint index fc8dd848..c629f766 100755 --- a/.tool/lint +++ b/.tool/lint @@ -4,11 +4,6 @@ set -o errexit set -o nounset set -o pipefail -if [ ! $(command -v gometalinter) ]; then - go get -u github.com/alecthomas/gometalinter - gometalinter --update --install -fi - for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -not -iwholename '*vendor*'); do gometalinter \ --exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \ diff --git a/Makefile b/Makefile index 2ebce81c..7ed03500 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ help: @echo " * 'lint' - Execute the source code linter" lint: ${OCID_LINK} + @which gometalinter > /dev/null 2>/dev/null || (echo "ERROR: gometalinter not found. Consider 'make install.tools' target" && false) @echo "checking lint" @./.tool/lint