18 lines
445 B
Bash
Executable File
18 lines
445 B
Bash
Executable File
|
|
|
|
# this script is for generating protobuf files for the new google.golang.org/protobuf API
|
|
|
|
set -eo pipefail
|
|
|
|
protoc_gen_gopulsar() {
|
|
go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest 2>/dev/null
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest 2>/dev/null
|
|
}
|
|
|
|
protoc_gen_gopulsar
|
|
|
|
echo "Generating API module"
|
|
(cd proto; buf generate --template buf.gen.pulsar.yaml)
|
|
|
|
(cd orm/internal; buf generate .)
|