Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: 💚 some fix in the proto generation script #109

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading