Browse Source

switch back to parsing .lock file

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

+ 8
- 3
scripts/dep_utils/checkout.sh View File

@ -1,10 +1,15 @@
#! /bin/bash
set +u
if [[ "$DEP" == "" ]]; then
DEP=$GOPATH/src/github.com/tendermint/tendermint/Gopkg.lock
fi
set -u
set -u
function getVendoredVersion() {
cd "$GOPATH/src/github.com/tendermint/tendermint" || exit
dep status | grep "$1" | awk '{print $4}'
cd - || exit
grep -A100 "$LIB" "$DEP" | grep revision | head -n1 | grep -o '"[^"]\+"' | cut -d '"' -f 2
}


+ 8
- 3
scripts/dep_utils/parse.sh View File

@ -1,8 +1,13 @@
#! /bin/bash
set -euo pipefail
cd "$GOPATH/github.com/tendermint/tendermint" || exit
set +u
if [[ "$DEP" == "" ]]; then
DEP=$GOPATH/src/github.com/tendermint/tendermint/Gopkg.lock
fi
set -u
set -euo pipefail
LIB=$1
dep status | grep "$LIB" | awk '{print $4}'
grep -A100 "$LIB" "$DEP" | grep revision | head -n1 | grep -o '"[^"]\+"' | cut -d '"' -f 2

Loading…
Cancel
Save