Lines Matching +full:bazel +full:- +full:2
8 # http://www.apache.org/licenses/LICENSE-2.0
17 # Keeping up with Bazel's breaking changes is currently difficult.
18 # This script wraps calling bazel by downloading the currently
20 # that running bazel will always get meaningful results, at least
21 # until Bazel 1.0 is released.
22 # NOTE: This script relies on bazel's feature where //tools/bazel
23 # script can be used to hijack "bazel" invocations in given workspace.
25 set -e
33 # https://github.com/bazelbuild/bazel/blob/master/scripts/packages/bazel.sh
35 # run "bazel" in our workspace)
36 exec -a "$0" "${BAZEL_REAL}" "$@"
38 # if BAZEL_REAL is not set, just invoke the default system bazel
39 exec bazel "$@"
43 # Read the bazel version from .bazelversion file in the root of the grpc repository
44 BAZELVERSION_FILE_PATH="$(dirname $(readlink -f "$0"))/../.bazelversion"
46 VERSION=${OVERRIDE_BAZEL_VERSION:-${VERSION_FROM_BAZELVERSION_FILE}}
47 …O: Running bazel wrapper (see //tools/bazel for details), bazel version $VERSION will be used inst…
49 # update tools/update_mirror.sh to populate the mirror with new bazel archives
50 BASEURL_MIRROR="https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/bazel/releas…
51 BASEURL="https://github.com/bazelbuild/bazel/releases/download"
53 # bazel binary will be downloaded to GRPC_REPO_ROOT/tools directory by default
54 DOWNLOAD_DIR=${OVERRIDE_BAZEL_WRAPPER_DOWNLOAD_DIR:-$(pwd)}
56 case $(uname -sm) in
58 suffix=linux-x86_64
61 suffix=linux-arm64
64 suffix=darwin-x86_64
67 suffix=darwin-arm64
70 suffix=windows-x86_64.exe
73 echo "Unsupported architecture: $(uname -sm)" >&2
78 filename="bazel-$VERSION-$suffix"
81 if [ ! -x "${filename_abs}" ] ; then
83 …echo "Downloading bazel, will try URLs: ${BASEURL_MIRROR}/${VERSION}/${filename} ${BASEURL}/${VERS…
84 …curl --fail -L --output "${filename_abs}" "${BASEURL_MIRROR}/${VERSION}/${filename}" || curl --fai…