mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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```
This commit is contained in:
parent
aa10b1ee7f
commit
138a312643
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user