You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
364 B

  1. #! /bin/bash
  2. set -euo pipefail
  3. IFS=$'\n\t'
  4. # script to update the given dependency in the glide.lock file with the checked out branch on the local host
  5. GLIDE=$1
  6. LIB=$2
  7. OLD_COMMIT=`bash scripts/glide/parse.sh $GLIDE $LIB`
  8. PWD=`pwd`
  9. cd $GOPATH/src/github.com/tendermint/$LIB
  10. NEW_COMMIT=$(git rev-parse HEAD)
  11. cd $PWD
  12. sed -i "s/$OLD_COMMIT/$NEW_COMMIT/g" $GLIDE