goclean: update for go modules

This commit is contained in:
Conner Fromknecht 2018-11-29 17:45:40 -08:00
parent 97c3fea94c
commit 2a9e4372c8
No known key found for this signature in database
GPG key ID: E7D737B67FA592C7

View file

@ -11,13 +11,6 @@
set -ex set -ex
# Make sure glide is installed and $GOPATH/bin is in your path.
# $ go get -u github.com/Masterminds/glide
# $ glide install
if [ ! -x "$(type -p glide)" ]; then
exit 1
fi
# Make sure gometalinter is installed and $GOPATH/bin is in your path. # Make sure gometalinter is installed and $GOPATH/bin is in your path.
# $ go get -v github.com/alecthomas/gometalinter" # $ go get -v github.com/alecthomas/gometalinter"
# $ gometalinter --install" # $ gometalinter --install"
@ -25,7 +18,7 @@ if [ ! -x "$(type -p gometalinter.v2)" ]; then
exit 1 exit 1
fi fi
linter_targets=$(glide novendor) linter_targets=$(go list ./...)
# Automatic checks # Automatic checks
test -z "$(gometalinter.v2 -j 4 --disable-all \ test -z "$(gometalinter.v2 -j 4 --disable-all \
@ -35,4 +28,4 @@ test -z "$(gometalinter.v2 -j 4 --disable-all \
--enable=gosimple \ --enable=gosimple \
--enable=unconvert \ --enable=unconvert \
--deadline=10m $linter_targets 2>&1 | grep -v 'ALL_CAPS\|OP_' 2>&1 | tee /dev/stderr)" --deadline=10m $linter_targets 2>&1 | grep -v 'ALL_CAPS\|OP_' 2>&1 | tee /dev/stderr)"
go test -tags rpctest $linter_targets GO111MODULE=on go test -tags="rpctest" $linter_targets