mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
15
vendor/google.golang.org/genproto/regen.sh
generated
vendored
15
vendor/google.golang.org/genproto/regen.sh
generated
vendored
@ -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..."
|
||||
|
Reference in New Issue
Block a user