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.

34 lines
880 B

  1. #! /bin/bash
  2. # for every github.com/tendermint dependency, warn is if its not synced with origin/master
  3. GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
  4. # make list of libs
  5. LIBS=($(grep "github.com/tendermint" $GLIDE | awk '{print $3}'))
  6. for lib in "${LIBS[@]}"; do
  7. # get vendored commit
  8. VENDORED=`grep -A1 $lib $GLIDE | grep -v $lib | awk '{print $2}'`
  9. PWD=`pwd`
  10. cd $GOPATH/src/$lib
  11. MASTER=`git rev-parse origin/master`
  12. HEAD=`git rev-parse HEAD`
  13. cd $PWD
  14. if [[ "$VENDORED" != "$MASTER" ]]; then
  15. echo ""
  16. if [[ "$VENDORED" != "$HEAD" ]]; then
  17. echo "Vendored version of $lib differs from origin/master and HEAD"
  18. echo "Vendored: $VENDORED"
  19. echo "Master: $MASTER"
  20. echo "Head: $HEAD"
  21. else
  22. echo "Vendored version of $lib differs from origin/master but matches HEAD"
  23. echo "Vendored: $VENDORED"
  24. echo "Master: $MASTER"
  25. fi
  26. fi
  27. done