Update go dependencies

This commit is contained in:
Manuel de Brito Fontes 2018-07-12 13:19:04 -04:00 committed by Manuel Alejandro de Brito Fontes
parent d5cf22c129
commit 063cc68d1c
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
1321 changed files with 52830 additions and 31081 deletions

View file

@ -24,7 +24,8 @@ set -e
PKG=google.golang.org/genproto
PROTO_REPO=https://github.com/google/protobuf
PROTO_SUBDIR=src/google/protobuf
API_REPO=https://github.com/googleapis/googleapis
GOOGLEAPIS_REPO=https://github.com/googleapis/googleapis
API_COMMON_REPO=https://github.com/googleapis/api-common-protos.git
function die() {
echo 1>&2 $*
@ -57,18 +58,26 @@ fi
if [ -z "$GOOGLEAPIS" ]; then
apidir=$(mktemp -d -t regen-cds-api.XXXXXX)
git clone -q $API_REPO $apidir &
git clone -q $GOOGLEAPIS_REPO $apidir &
remove_dirs="$remove_dirs $apidir"
else
apidir="$GOOGLEAPIS"
fi
if [ -z "$COMMONPROTOS" ]; then
commondir=$(mktemp -d -t regen-cds-common.XXXXXX)
git clone -q $API_COMMON_REPO $commondir &
remove_dirs="$remove_dirs $commondir"
else
commondir="$COMMONPROTOS"
fi
wait
# Nuke everything, we'll generate them back
rm -r googleapis/ protobuf/
go run regen.go -go_out "$root/src" -pkg_prefix "$PKG" "$apidir" "$protodir"
go run regen.go -go_out "$root/src" -pkg_prefix "$PKG" "$commondir" "$apidir" "$protodir"
# Sanity check the build.
echo 1>&2 "Checking that the libraries build..."