mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
ditch glide
This commit is contained in:
25
scripts/dep_utils/checkout.sh
Normal file
25
scripts/dep_utils/checkout.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#! /bin/bash
|
||||
set -u
|
||||
|
||||
function getVendoredVersion() {
|
||||
dep status | grep "$1" | awk '{print $4}'
|
||||
}
|
||||
|
||||
|
||||
# fetch and checkout vendored dep
|
||||
|
||||
lib=$1
|
||||
|
||||
echo "----------------------------------"
|
||||
echo "Getting $lib ..."
|
||||
go get -t "github.com/tendermint/$lib/..."
|
||||
|
||||
VENDORED=$(getVendoredVersion "$lib")
|
||||
cd "$GOPATH/src/github.com/tendermint/$lib" || exit
|
||||
MASTER=$(git rev-parse origin/master)
|
||||
|
||||
if [[ "$VENDORED" != "$MASTER" ]]; then
|
||||
echo "... VENDORED != MASTER ($VENDORED != $MASTER)"
|
||||
echo "... Checking out commit $VENDORED"
|
||||
git checkout "$VENDORED" &> /dev/null
|
||||
fi
|
6
scripts/dep_utils/parse.sh
Normal file
6
scripts/dep_utils/parse.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#! /bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
LIB=$1
|
||||
|
||||
dep status | grep "$LIB" | awk '{print $4}'
|
Reference in New Issue
Block a user