Browse Source

cd into tendermint before calling `dep status`

pull/1250/head
Anton Kaliaev 7 years ago
parent
commit
66354de219
No known key found for this signature in database GPG Key ID: 7B6881D965918214
3 changed files with 6 additions and 3 deletions
  1. +2
    -0
      scripts/dep_utils/checkout.sh
  2. +2
    -0
      scripts/dep_utils/parse.sh
  3. +2
    -3
      scripts/install_abci_apps.sh

+ 2
- 0
scripts/dep_utils/checkout.sh View File

@ -2,7 +2,9 @@
set -u set -u
function getVendoredVersion() { function getVendoredVersion() {
cd "$GOPATH/src/github.com/tendermint/tendermint" || exit
dep status | grep "$1" | awk '{print $4}' dep status | grep "$1" | awk '{print $4}'
cd - || exit
} }


+ 2
- 0
scripts/dep_utils/parse.sh View File

@ -1,6 +1,8 @@
#! /bin/bash #! /bin/bash
set -euo pipefail set -euo pipefail
cd "$GOPATH/github.com/tendermint/tendermint" || exit
LIB=$1 LIB=$1
dep status | grep "$LIB" | awk '{print $4}' dep status | grep "$LIB" | awk '{print $4}'

+ 2
- 3
scripts/install_abci_apps.sh View File

@ -1,13 +1,12 @@
#! /bin/bash #! /bin/bash
go get -d github.com/tendermint/abci
# get the abci commit used by tendermint # get the abci commit used by tendermint
COMMIT=$(bash scripts/dep_utils/parse.sh abci) COMMIT=$(bash scripts/dep_utils/parse.sh abci)
echo "Checking out vendored commit for abci: $COMMIT" echo "Checking out vendored commit for abci: $COMMIT"
go get -d github.com/tendermint/abci
cd "$GOPATH/src/github.com/tendermint/abci" || exit cd "$GOPATH/src/github.com/tendermint/abci" || exit
git checkout "$COMMIT" git checkout "$COMMIT"
make get_tools
make get_vendor_deps make get_vendor_deps
make install make install

Loading…
Cancel
Save