Files
orion_greptime_proto/scripts/generate-go.sh
T
fys 4ce7e9a3ff refactor: enhanced trigger interval (#269)
* fix: improve interval precision

* chore: better name

* chore: add /opt/include to proto include

* remove empty line
2025-08-18 10:58:28 +08:00

12 lines
343 B
Bash
Executable File

#! /usr/bin/env bash
set -e
PROTO_ROOT=./proto
GO_OUTPUT=./go
protoc -I=${PROTO_ROOT} -I /opt/include --go_out=paths=source_relative:${GO_OUTPUT} $(find ./proto/ -type f -iname "*.proto")
protoc -I=${PROTO_ROOT} -I /opt/include \
--go-grpc_out=paths=source_relative:${GO_OUTPUT} \
$(find ./proto/ -type f -iname "*.proto")