Skip to content

Commit

Permalink
build: 💚 some fix in the proto generation script (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli authored Sep 19, 2024
1 parent 20bdf37 commit 4a59535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/scripts/setup-devcontainers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -e

echo "Setting up devcontainer environment..."
chmod +x ./scripts/*.sh
echo "Permissions set."
chmod +x ./../scripts/install-tools.sh
echo "Permissions set."
9 changes: 5 additions & 4 deletions scripts/proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ readonly outPath="./internal/services/$service/internal/shared/grpc/genproto"
# https://stackoverflow.com/questions/13616033/install-protocol-buffers-on-windows
# https://dev.to/techschoolguru/how-to-define-a-protobuf-message-and-generate-go-code-4g4e
protoc \
--proto_path=api/protobuf "api/protobuf/$service/*.proto" \
"--go_out=$outPath" \
"--go-grpc_out=$outPath" \
--go-grpc_opt=require_unimplemented_servers=false
--proto_path="api/protobuf/$service" \
--go_out="$outPath" \
--go-grpc_out="$outPath" \
--go-grpc_opt=require_unimplemented_servers=false \
api/protobuf/$service/*.proto

0 comments on commit 4a59535

Please sign in to comment.