refactor: genetate protobuf (#259)

* refactor: genetate protobuf

* make all
This commit is contained in:
liyang
2025-08-01 17:37:20 +08:00
committed by GitHub
parent fe8c13f5f3
commit a6ce3ceb46
2 changed files with 11 additions and 17 deletions
+2 -11
View File
@@ -2,17 +2,8 @@
set -e
PROTO_ROOT=./proto
GO_OUTPUT=./go
# TODO(zyy17): Can we make the following commands as one command?
protoc --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
-Iproto proto/greptime/v1/**/*.proto
protoc -I=${PROTO_ROOT} --go_out=paths=source_relative:${GO_OUTPUT} $(find ./proto/ -type f -iname "*.proto")
protoc --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
-Iproto proto/prometheus/**/*.proto
protoc --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
-Iproto proto/substrait_extension/*.proto