github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/scripts/glide-update.sh (about)

     1  #!/usr/bin/env bash
     2  #
     3  # Update vendored dedendencies.
     4  #
     5  set -e
     6  
     7  if ! [[ "$PWD" = "$GOPATH/src/github.com/rkt/rkt" ]]; then
     8    echo "must be run from \$GOPATH/src/github.com/rkt/rkt"
     9    exit 255
    10  fi
    11  
    12  if [ ! $(command -v glide) ]; then
    13  	echo "glide: command not found"
    14  	exit 255
    15  fi
    16  
    17  if [ ! $(command -v glide-vc) ]; then
    18  	echo "glide-vc: command not found"
    19  	exit 255
    20  fi
    21  
    22  glide update --strip-vendor
    23  glide-vc --only-code --no-tests --keep="**/*.json.in" --use-lock-file