mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
23 lines
495 B
Bash
Executable File
23 lines
495 B
Bash
Executable File
#!/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.13"* ]]; then
|
|
echo "expect Go 1.13+, got:" "$(go version)"
|
|
exit 255
|
|
fi
|
|
|
|
GO111MODULE=on go mod tidy -v
|
|
GO111MODULE=on go mod vendor -v
|