From a011b2c4c40c26cab0a21b7e6ea8957364798ca5 Mon Sep 17 00:00:00 2001 From: Sam Batschelet Date: Tue, 22 Jan 2019 16:55:01 +0000 Subject: [PATCH] scripts: disable go mod and bump protoc to 3.6.1 Signed-off-by: Sam Batschelet --- scripts/genproto.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/genproto.sh b/scripts/genproto.sh index 1f4e732a5..3ec9c77c2 100755 --- a/scripts/genproto.sh +++ b/scripts/genproto.sh @@ -10,14 +10,17 @@ if ! [[ "$0" =~ scripts/genproto.sh ]]; then exit 255 fi -if [[ $(protoc --version | cut -f2 -d' ') != "3.6.0" ]]; then - echo "could not find protoc 3.6.0, is it installed + in PATH?" +if [[ $(protoc --version | cut -f2 -d' ') != "3.6.1" ]]; then + echo "could not find protoc 3.6.1, is it installed + in PATH?" exit 255 fi # directories containing protos to be built DIRS="./wal/walpb ./etcdserver/etcdserverpb ./etcdserver/api/snap/snappb ./raft/raftpb ./mvcc/mvccpb ./lease/leasepb ./auth/authpb ./etcdserver/api/v3lock/v3lockpb ./etcdserver/api/v3election/v3electionpb" +# disable go mod +export GO111MODULE=off + # exact version of packages to build GOGO_PROTO_SHA="1adfc126b41513cc696b209667c8656ea7aac67c" GRPC_GATEWAY_SHA="92583770e3f01b09a0d3e9bdf64321d8bebd48f2"