From 138a312643efa935a91440b93e75ce019430185b Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Wed, 16 Sep 2020 13:04:58 +0200 Subject: [PATCH] scripts: Removed updatedep.sh. As we get rid of ./vendor there is no need to update the dependencies. If anyone needs up-to-date vendor directory locally, getting it is as simple as: ```go mod vendor``` --- scripts/updatedep.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 scripts/updatedep.sh diff --git a/scripts/updatedep.sh b/scripts/updatedep.sh deleted file mode 100755 index 75adc050f..000000000 --- a/scripts/updatedep.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -set -e - -if ! [[ "$0" =~ scripts/updatedep.sh ]]; then - echo "must be run from repository root" - exit 255 -fi - -if [ -d "gopath.proto" ]; then - # gopath.proto is created by genproto.sh and it thoroughly messes - # with go mod. - echo "Remove gopath.proto before running this script" - exit 255 -fi - -if [[ $(go version) < "go version go1.14" ]]; then - echo "expect Go 1.14+, got:" "$(go version)" - exit 255 -fi - -GO111MODULE=on go mod tidy -v -GO111MODULE=on go mod vendor -v - -RED='\033[0;31m' -NC='\033[0m' # No Color -echo -e "\n${RED} WARNING: In etcd >=3.5 we use go modules rather than vendoring" -echo -e "${RED} Please refactor your logic to depend on modules directly.${NC}" -