From 9825f06f9af2e0e7ed6a29e25ce36841896a91c9 Mon Sep 17 00:00:00 2001 From: Alec-Yenter Date: Wed, 8 Aug 2018 16:50:46 -0500 Subject: [PATCH] Add ability to use with kubernetes configmaps --- generate.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generate.sh b/generate.sh index 83ac37d..c18c1f5 100755 --- a/generate.sh +++ b/generate.sh @@ -47,23 +47,23 @@ mv ${PROTOS_PATH}/google/api/annotations.proto ${DESTINATION_PATH} mv ${PROTOS_PATH}/google/api/http.proto ${DESTINATION_PATH} echo "GENERATING... stubs go" -find ${PROTOS_PATH} -type f -name "*.proto" -exec protoc -I${PROTOS_PATH} \ +find -L ${PROTOS_PATH} -not -path '*/\.*' -type f -name "*.proto" -exec protoc -I${PROTOS_PATH} \ --proto_path=${PROTOS_PATH} \ -I${GOPATH}/src \ -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --go_out=plugins=grpc:${STUBS_PATH} \ - {} \; + {} \; echo "GENERATING... reverse-proxy" -find ${PROTOS_PATH} -type f -name "*.proto" -exec protoc -I${PROTOS_PATH} \ +find -L ${PROTOS_PATH} -not -path '*/\.*' -type f -name "*.proto" -exec protoc -I${PROTOS_PATH} \ --proto_path=${PROTOS_PATH} \ -I${GOPATH}/src \ -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --grpc-gateway_out=logtostderr=true:${STUBS_PATH} \ - {} \; + {} \; echo "GENERATING... swagger definitions" -find ${PROTOS_PATH} -type f -name "*.proto" -exec protoc -I${PROTOS_PATH} \ +find -L ${PROTOS_PATH} -not -path '*/\.*' -type f -name "*.proto" -exec protoc -I${PROTOS_PATH} \ --proto_path=${PROTOS_PATH} \ -I${GOPATH}/src \ -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \