gotest: use stable version of metalinter
This commit is contained in:
parent
9dfaca1632
commit
5d434839a4
11
gotest.sh
11
gotest.sh
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user