go.etcd.io/etcd@v3.3.27+incompatible/scripts/updatedep.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 if ! [[ "$0" =~ scripts/updatedep.sh ]]; then 5 echo "must be run from repository root" 6 exit 255 7 fi 8 9 # NOTE: just run 10 rm -rf ./vendor 11 glide install --strip-vendor --skip-test . 12 glide vc --only-code --no-tests 13 14 # ref. https://github.com/kubernetes/kubernetes/pull/81434 15 exit 0 16 17 18 19 20 if [ -d "gopath.proto" ]; then 21 # gopath.proto is created by genproto.sh and it thoroughly messes 22 # with go mod. 23 echo "Remove gopath.proto before running this script" 24 exit 255 25 fi 26 27 if [[ $(go version) != "go version go1.12"* ]]; then 28 echo "expect Go 1.12+, got:" "$(go version)" 29 exit 255 30 fi 31 32 GO111MODULE=on go mod tidy -v 33 GO111MODULE=on go mod vendor -v