generate-protos.sh 505 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. (
  3. cd tools/
  4. ./build.sh
  5. )
  6. (
  7. cd third_party/
  8. [[ ! -d googleapis ]] && git clone https://github.com/googleapis/googleapis
  9. cd googleapis
  10. git checkout 24fb9e5d1f37110bfa198189c34324aa3fdb0896
  11. )
  12. tools/bin/buf protoc \
  13. -Iproto \
  14. -Ithird_party/googleapis \
  15. --plugin tools/bin/protoc-gen-go \
  16. --go_out=bridge/pkg/ proto/**/**/**
  17. tools/bin/buf protoc \
  18. -Iproto \
  19. -Ithird_party/googleapis \
  20. --plugin tools/bin/protoc-gen-go-grpc \
  21. --go-grpc_out=bridge/pkg/ proto/**/**/**