gotest: use stable version of metalinter

This commit is contained in:
Andrey Samokhvalov 2017-03-16 15:13:40 +03:00 committed by Olaoluwa Osuntokun
parent 9dfaca1632
commit 5d434839a4
1 changed files with 7 additions and 4 deletions

View File

@ -85,15 +85,18 @@ lint_check() {
print "* Run static checks"
# Make sure gometalinter is installed and $GOPATH/bin is in your path.
if [ ! -x "$(type -p gometalinter)" ]; then
if [ ! -x "$(type -p gometalinter.v1)" ]; then
print "** Install gometalinter"
go get -v github.com/alecthomas/gometalinter
gometalinter --install
go get -u gopkg.in/alecthomas/gometalinter.v1
gometalinter.v1 --install
fi
# Update metalinter if needed.
gometalinter.v1 --install 1>/dev/null
# Automatic checks
linter_targets=$(glide novendor | grep -v lnrpc)
test -z "$(gometalinter --disable-all \
test -z "$(gometalinter.v1 --disable-all \
--enable=gofmt \
--enable=vet \
--enable=golint \