Update go dependencies

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-03-28 20:43:46 -03:00
parent 14a9e9f3fa
commit 14f4a7b8e8
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
1349 changed files with 128369 additions and 32627 deletions

View file

@ -23,9 +23,7 @@ set -e
PKG=google.golang.org/genproto
PROTO_REPO=https://github.com/google/protobuf
PROTO_SUBDIR=src/google/protobuf
GOOGLEAPIS_REPO=https://github.com/googleapis/googleapis
API_COMMON_REPO=https://github.com/googleapis/api-common-protos.git
function die() {
echo 1>&2 $*
@ -48,7 +46,7 @@ trap 'rm -rf $remove_dirs' EXIT
if [ -z "$PROTOBUF" ]; then
proto_repo_dir=$(mktemp -d -t regen-cds-proto.XXXXXX)
git clone -q $PROTO_REPO $proto_repo_dir &
git clone $PROTO_REPO $proto_repo_dir
remove_dirs="$proto_repo_dir"
# The protoc include directory is actually the "src" directory of the repo.
protodir="$proto_repo_dir/src"
@ -58,26 +56,18 @@ fi
if [ -z "$GOOGLEAPIS" ]; then
apidir=$(mktemp -d -t regen-cds-api.XXXXXX)
git clone -q $GOOGLEAPIS_REPO $apidir &
git clone $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" "$commondir" "$apidir" "$protodir"
go run regen.go -go_out "$root/src" -pkg_prefix "$PKG" "$apidir" "$protodir"
# Sanity check the build.
echo 1>&2 "Checking that the libraries build..."