generated from VLADIMIR/template
up
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user