Skip to content

Commit

Permalink
golang/protobuf#39 not sure how this will get closed out but until th…
Browse files Browse the repository at this point in the history
…en only gen protos in the target directory when go is the output language
  • Loading branch information
brantc-namely committed Mar 14, 2019
1 parent 2590581 commit b26c946
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion all/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ PROTO_INCLUDE="-I /usr/local/include/ \

if [ ! -z $PROTO_DIR ]; then
PROTO_INCLUDE="$PROTO_INCLUDE -I $PROTO_DIR"
PROTO_FILES=(`find ${PROTO_DIR} -name "*.proto"`)
FIND_DEPTH=""
if [[ $GEN_LANG == "go" ]]; then
FIND_DEPTH="-maxdepth 1"
fi
PROTO_FILES=(`find ${FIND_DEPTH} ${PROTO_DIR} -name "*.proto"`)
else
PROTO_INCLUDE="-I . $PROTO_INCLUDE"
PROTO_FILES=($FILE)
Expand Down

0 comments on commit b26c946

Please sign in to comment.