wormhole/generate-protos.sh

28 lines
640 B
Bash
Raw Normal View History

#!/usr/bin/env bash
(
cd tools/
./build.sh
)
(
cd third_party/
[[ ! -d googleapis ]] && git clone https://github.com/googleapis/googleapis
cd googleapis
git checkout 24fb9e5d1f37110bfa198189c34324aa3fdb0896
)
2020-08-20 09:42:46 -07:00
tools/bin/buf protoc \
-Iproto \
-Ithird_party/googleapis \
2020-08-20 09:42:46 -07:00
--plugin tools/bin/protoc-gen-go \
--go_opt=module=github.com/certusone/wormhole/bridge/pkg \
2020-08-20 09:42:46 -07:00
--go_out=bridge/pkg/ proto/**/**/**
tools/bin/buf protoc \
-Iproto \
-Ithird_party/googleapis \
--plugin tools/bin/protoc-gen-go-grpc \
--go-grpc_opt=module=github.com/certusone/wormhole/bridge/pkg \
--go-grpc_out=bridge/pkg/ proto/**/**/**