Files
orion_greptime_proto/scripts/generate-go.sh
T
Ruihang Xia e94a24873b feat: add substrait extension (#36)
* feat: add substrait extension

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix typo

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-05-18 14:31:14 +08:00

23 lines
841 B
Bash
Executable File

#! /usr/bin/env bash
set -e
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/meta/*.proto
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 --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
-Iproto proto/prometheus/remote/*.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