Skip to content

Commit

Permalink
add --experimental_allow_proto3_optional to protoc in compile_protos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Belissimo-T committed May 8, 2024
1 parent 88dcbe5 commit 04f9b54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seekers/grpc/compile_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ python -m grpc_tools.protoc \
--grpc_python_out=stubs \
--proto_path=proto/src/main/proto \
--mypy_out=stubs \
--experimental_allow_proto3_optional \
"${proto_src_files[@]}"

# invoke proletariat to fix broken imports
Expand All @@ -20,4 +21,4 @@ protol \
--create-package \
--in-place \
--python-out stubs \
protoc --proto-path=proto/src/main/proto "${proto_src_files[@]}"
protoc --proto-path=proto/src/main/proto "${proto_src_files[@]}" --experimental_allow_proto3_optional

0 comments on commit 04f9b54

Please sign in to comment.