github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/generate_go_py_protos.sh (about) 1 # Exit on error. 2 set -e 3 4 echo 'Transpiling required protos to Go and Python.' 5 6 # Go to this script's directory. 7 cd "$(/usr/bin/dirname "$(/bin/readlink -e "${0}")")" 8 9 find .. -name '*.proto' -print0 | xargs -0 -t -I % python -m grpc_tools.protoc \ 10 --go_out=.. --go-grpc_out=.. \ 11 --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative \ 12 --proto_path=.. %