https://github.com/etcd-io/etcd
Revision d65219c1ef18195a7cac898752b1d4f41664c633 authored by Gyuho Lee on 15 August 2019, 22:02:03 UTC, committed by Gyuho Lee on 15 August 2019, 22:02:03 UTC
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
1 parent b9c976e
Raw File
Tip revision: d65219c1ef18195a7cac898752b1d4f41664c633 authored by Gyuho Lee on 15 August 2019, 22:02:03 UTC
go.mod: regenerate
Tip revision: d65219c
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