• Home
  • Raw
  • Download

Lines Matching +full:bazel +full:- +full:0

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 "$@"
44 # (e.g. win RBE builds, sanity checks, bazel toolchains etc.)
46 echo "INFO: Running bazel wrapper (see //tools/bazel for details), bazel version $VERSION will be u…
48 # update tools/update_mirror.sh to populate the mirror with new bazel archives
49 BASEURL_MIRROR="https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/bazel/releas…
50 BASEURL="https://github.com/bazelbuild/bazel/releases/download"
51 pushd "$(dirname "$0")" >/dev/null
54 case $(uname -sm) in
56 suffix=linux-x86_64
59 suffix=linux-arm64
62 suffix=darwin-x86_64
65 echo "Unsupported architecture: $(uname -sm)" >&2
70 filename="bazel-$VERSION-$suffix"
72 if [ ! -x "$filename" ] ; then
74 …echo "Downloading bazel, will try URLs: ${BASEURL_MIRROR}/${VERSION}/${filename} ${BASEURL}/${VERS…
75 …curl --fail -L --output "${filename}" "${BASEURL_MIRROR}/${VERSION}/${filename}" || curl --fail -L…