Add googleapis protos
continuous-integration/drone/push Build is passing Details

master
René Jochum 2 years ago
parent 4365d5760d
commit 7318ae7451
Signed by: jochum
GPG Key ID: F7D906F5E51E8E5E

@ -20,4 +20,12 @@ if [[ ! -x /go/bin/trunk ]]; then
popd
fi
# Protos
if [[ ! -d /go/protos/googleapis ]]; then
mkdir -p /go/protos
pushd /go/protos
git clone https://github.com/googleapis/googleapis.git
popd
fi
exec "$@"

@ -1,2 +1,2 @@
#!/bin/sh
find . -name '*.proto' -print0 | xargs -0 -I {} /bin/sh -c 'cd $(dirname $1); protoc --proto_path=$GOPATH/bin:. -I/code --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename $1)' '_' '{}'
find . -name '*.proto' -print0 | xargs -0 -I {} /bin/sh -c 'cd $(dirname $1); protoc --proto_path=$GOPATH/bin:. -I /go/protos/googleapis -I/code --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename $1)' '_' '{}'
Loading…
Cancel
Save