From 4a59535f2f5432b3a1a4d28fe0a1767a66dd16f9 Mon Sep 17 00:00:00 2001 From: Mehdi Hadeli Date: Thu, 19 Sep 2024 13:43:49 +0200 Subject: [PATCH] =?UTF-8?q?build:=20=F0=9F=92=9A=20some=20fix=20in=20the?= =?UTF-8?q?=20proto=20generation=20script=20(#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/scripts/setup-devcontainers.sh | 4 ++-- scripts/proto.sh | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.devcontainer/scripts/setup-devcontainers.sh b/.devcontainer/scripts/setup-devcontainers.sh index d923129a..8ecf5003 100644 --- a/.devcontainer/scripts/setup-devcontainers.sh +++ b/.devcontainer/scripts/setup-devcontainers.sh @@ -2,5 +2,5 @@ set -e echo "Setting up devcontainer environment..." -chmod +x ./scripts/*.sh -echo "Permissions set." \ No newline at end of file +chmod +x ./../scripts/install-tools.sh +echo "Permissions set." diff --git a/scripts/proto.sh b/scripts/proto.sh index 60f8e258..2044de07 100644 --- a/scripts/proto.sh +++ b/scripts/proto.sh @@ -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