From 8390e88e27ca446e4028b6712a10e6942a2059e3 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 9 Dec 2016 01:28:08 -0500 Subject: [PATCH] fix flowrate dep and test --- blockchain/pool.go | 2 +- glide.lock | 6 +++--- glide.yaml | 4 +++- scripts/glide/parse.sh | 7 ++++--- test/test_libs.sh | 6 ++++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/blockchain/pool.go b/blockchain/pool.go index 86f67296d..d528e052a 100644 --- a/blockchain/pool.go +++ b/blockchain/pool.go @@ -5,8 +5,8 @@ import ( "sync" "time" - flow "github.com/tendermint/flowcontrol" . "github.com/tendermint/go-common" + flow "github.com/tendermint/go-flowrate/flowrate" "github.com/tendermint/tendermint/types" ) diff --git a/glide.lock b/glide.lock index d125cb3d5..40f3b45d9 100644 --- a/glide.lock +++ b/glide.lock @@ -49,8 +49,8 @@ imports: subpackages: - edwards25519 - extra25519 -- name: github.com/tendermint/flowcontrol - version: 84d9671090430e8ec80e35b339907e0579b999eb +- name: github.com/tendermint/go-flowrate + version: a20c98e61957faa93b4014fbd902f20ab9317a6a - name: github.com/tendermint/go-clist version: 3baa390bbaf7634251c42ad69a8682e7e3990552 - name: github.com/tendermint/go-common @@ -70,7 +70,7 @@ imports: - name: github.com/tendermint/go-merkle version: 05042c6ab9cad51d12e4cecf717ae68e3b1409a8 - name: github.com/tendermint/go-p2p - version: 2cee3646927182964268e63c4248db3def69ac4e + version: eab2baa363de01b052b88c559e803776cd2c7dd6 subpackages: - upnp - name: github.com/tendermint/go-rpc diff --git a/glide.yaml b/glide.yaml index 0b11807a3..a24fe80d6 100644 --- a/glide.yaml +++ b/glide.yaml @@ -6,7 +6,6 @@ import: - package: github.com/gorilla/websocket - package: github.com/spf13/pflag - package: github.com/tendermint/ed25519 -- package: github.com/tendermint/flowcontrol - package: github.com/tendermint/go-clist - package: github.com/tendermint/go-common - package: github.com/tendermint/go-config @@ -34,3 +33,6 @@ import: - package: golang.org/x/crypto subpackages: - ripemd160 +- package: github.com/tendermint/go-flowrate + subpackages: + - flowrate diff --git a/scripts/glide/parse.sh b/scripts/glide/parse.sh index 86b5567b7..8e8ed1779 100644 --- a/scripts/glide/parse.sh +++ b/scripts/glide/parse.sh @@ -1,10 +1,11 @@ #! /bin/bash -set -euo pipefail - -LIB=$1 if [[ "$GLIDE" == "" ]]; then GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock fi +set -euo pipefail + +LIB=$1 + cat $GLIDE | grep -A1 $LIB | grep -v $LIB | awk '{print $2}' diff --git a/test/test_libs.sh b/test/test_libs.sh index 9f601f788..b0599256e 100644 --- a/test/test_libs.sh +++ b/test/test_libs.sh @@ -1,4 +1,5 @@ #! /bin/bash +set -e # set glide.lock path if [[ "$GLIDE" == "" ]]; then @@ -28,10 +29,11 @@ for lib in "${LIBS_GO_TEST[@]}"; do done for lib in "${LIBS_MAKE_TEST[@]}"; do - getDep $lib + + # checkout vendored version of lib + bash scripts/glide/checkout.sh $GLIDE $lib echo "Testing $lib ..." - cd $GOPATH/src/github.com/tendermint/$lib make test if [[ "$?" != 0 ]]; then echo "FAIL"