Browse code

verify and update protobufs in make verify/update

Ben Parees authored on 2016/09/21 21:27:48
Showing 2 changed files
... ...
@@ -70,6 +70,7 @@ verify: build
70 70
 	hack/verify-generated-clientsets.sh
71 71
 	hack/verify-generated-completions.sh
72 72
 	hack/verify-generated-docs.sh
73
+	PROTO_OPTIONAL=1 hack/verify-generated-protobuf.sh
73 74
 	hack/verify-generated-swagger-descriptions.sh
74 75
 	hack/verify-generated-swagger-spec.sh
75 76
 .PHONY: verify
... ...
@@ -85,6 +86,7 @@ update: build
85 85
 	hack/update-generated-clientsets.sh
86 86
 	hack/update-generated-completions.sh
87 87
 	hack/update-generated-docs.sh
88
+	PROTO_OPTIONAL=1 hack/update-generated-protobuf.sh
88 89
 	hack/update-generated-swagger-descriptions.sh
89 90
 	hack/update-generated-swagger-spec.sh
90 91
 .PHONY: update
... ...
@@ -7,6 +7,9 @@ if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 3.0."* ]]; the
7 7
   echo
8 8
   echo "  https://github.com/google/protobuf/releases"
9 9
   echo
10
+  if [[ "${PROTO_OPTIONAL:-}" == "1" ]]; then
11
+    exit 0
12
+  fi
10 13
   exit 1
11 14
 fi
12 15