mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
switch back to parsing .lock file
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
set +u
|
||||||
|
if [[ "$DEP" == "" ]]; then
|
||||||
|
DEP=$GOPATH/src/github.com/tendermint/tendermint/Gopkg.lock
|
||||||
|
fi
|
||||||
|
set -u
|
||||||
|
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
function getVendoredVersion() {
|
function getVendoredVersion() {
|
||||||
cd "$GOPATH/src/github.com/tendermint/tendermint" || exit
|
grep -A100 "$LIB" "$DEP" | grep revision | head -n1 | grep -o '"[^"]\+"' | cut -d '"' -f 2
|
||||||
dep status | grep "$1" | awk '{print $4}'
|
|
||||||
cd - || exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
#! /bin/bash
|
#! /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
|
LIB=$1
|
||||||
|
|
||||||
dep status | grep "$LIB" | awk '{print $4}'
|
grep -A100 "$LIB" "$DEP" | grep revision | head -n1 | grep -o '"[^"]\+"' | cut -d '"' -f 2
|
||||||
|
|||||||
Reference in New Issue
Block a user