Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* golang/protobuf#39 not sure how this will get closed out but until then only gen protos in the target directory when go is the output language

* fixed arg ordering
  • Loading branch information
brantc-namely committed Mar 14, 2019
1 parent 2590581 commit 75493e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion all/entrypoint.sh
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 ${PROTO_DIR} ${FIND_DEPTH} -name "*.proto"`)
else
PROTO_INCLUDE="-I . $PROTO_INCLUDE"
PROTO_FILES=($FILE)
Expand Down

0 comments on commit 75493e4

Please sign in to comment.