https://github.com/etcd-io/etcd
Raw File
Tip revision: 5cd1d285d744abf65dedefe1b374c13d7f2c7750 authored by Wenjia Zhang on 13 June 2024, 14:10:05 UTC
Bump the version to 3.4.33
Tip revision: 5cd1d28
updatedep.sh
#!/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.12"* ]]; then
  echo "expect Go 1.12+, got:" "$(go version)"
  exit 255
fi

GO111MODULE=on go mod tidy -v
GO111MODULE=on go mod vendor -v
back to top