2021-11-24 10:10:26 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# this script is for generating protobuf files for the new google.golang.org/protobuf API
|
|
|
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
2022-01-06 11:57:55 -08:00
|
|
|
protoc_gen_gopulsar() {
|
|
|
|
go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest 2>/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
protoc_gen_gopulsar
|
|
|
|
|
|
|
|
echo "Generating API module"
|
|
|
|
(cd proto; buf generate --template buf.gen.pulsar.yaml)
|
2021-11-24 10:10:26 -08:00
|
|
|
|
|
|
|
(cd orm/internal; buf generate .)
|