|
|
@@ -6,6 +6,13 @@ if ! [[ "$0" =~ scripts/updatedep.sh ]]; then
|
|
|
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
|