This commit is contained in:
2026-09-17 00:37:49 +07:00
parent de775bbb24
commit 26c344dfbd
2 changed files with 17 additions and 0 deletions
+8
View File
@@ -1,3 +1,5 @@
# Protobuf generation (tool versions are documented in README.md).
# Install the pinned plugins before running: make install-generate-tools.
generate:
rm -rf proto
mkdir -p proto
@@ -9,6 +11,12 @@ generate:
--openapiv2_out=./cmd/evening_detective_server --openapiv2_opt allow_merge=true,merge_file_name=main \
./api/main.proto
install-generate-tools:
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.6.2
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.30.0
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.30.0
run:
go run ./cmd/evening_detective_server