mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
gotest: use stable version of metalinter
This commit is contained in:
parent
9dfaca1632
commit
5d434839a4
1 changed files with 7 additions and 4 deletions
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…
Add table
Reference in a new issue