Skip to content

Commit 75493e4

Browse files
* 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
1 parent 2590581 commit 75493e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

all/entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ PROTO_INCLUDE="-I /usr/local/include/ \
205205

206206
if [ ! -z $PROTO_DIR ]; then
207207
PROTO_INCLUDE="$PROTO_INCLUDE -I $PROTO_DIR"
208-
PROTO_FILES=(`find ${PROTO_DIR} -name "*.proto"`)
208+
FIND_DEPTH=""
209+
if [[ $GEN_LANG == "go" ]]; then
210+
FIND_DEPTH="-maxdepth 1"
211+
fi
212+
PROTO_FILES=(`find ${PROTO_DIR} ${FIND_DEPTH} -name "*.proto"`)
209213
else
210214
PROTO_INCLUDE="-I . $PROTO_INCLUDE"
211215
PROTO_FILES=($FILE)

0 commit comments

Comments
 (0)