refactor: genetate protobuf (#259)
* refactor: genetate protobuf * make all
This commit is contained in:
+2
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user