swh:1:snp:8a1bf80ec89c62a71cdcaaf0c2f9145695a5340a
Raw File
Tip revision: 17cef6e3e9d57c8c9d6a6afadcc3ff12c9279217 authored by Gyuho Lee on 19 August 2020, 16:56:24 UTC
version: 3.4.12
Tip revision: 17cef6e
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