File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ ENVOY_API_REPOS=(
4646 " https://github.com/envoyproxy/protoc-gen-validate"
4747)
4848for repo in ${ENVOY_API_REPOS[@]} ; do
49- dirname=` basename ${repo} `
49+ dirname=$( basename ${repo} )
5050 mkdir -p ${WORKDIR} /${dirname}
5151 echo " git clone ${repo} "
5252 git clone --quiet ${repo} ${WORKDIR} /${dirname}
@@ -71,15 +71,8 @@ SOURCES=(
7171# These options of the form 'Mfoo.proto=bar' instruct the codegen to use an
7272# import path of 'bar' in the generated code when 'foo.proto' is imported in
7373# one of the sources.
74- MAPPINGS=(
75- " grpc/service_config/service_config.proto=/internal/proto/grpc_service_config"
76- " envoy/config/core/v3/config_source.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
77- )
78- OPTS=" "
79- for i in " ${MAPPINGS[@]} "
80- do
81- OPTS+=" M$i ,"
82- done
74+ OPTS=Mgrpc/service_config/service_config.proto=/internal/proto/grpc_service_config,\
75+ Menvoy/config/core/v3/config_source.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3
8376for src in ${SOURCES[@]} ; do
8477 echo " protoc ${src} "
8578 protoc --go_out=${OPTS} :${WORKDIR} /out --go-grpc_out=${OPTS} ,requireUnimplementedServers=false:${WORKDIR} /out \
You can’t perform that action at this time.
0 commit comments