Files
angular__angular/scripts/circleci/setup_bazel_binary.sh
T
Paul Gschwendtner 39818135d3 build: do not run bazel through yarn and nodejs
We don't want to run Bazel through Yarn or NodeJS as that could
mean that Bazel runs with limited memory.
2019-07-11 11:49:30 -07:00

11 lines
283 B
Bash
Executable File

#!/bin/bash
set -e
bazelBin=$(node -p "require('@bazel/bazel').getNativeBinary()")
# Provide the bazel binary globally. We don't want to access the binary
# through Node as it could result in limited memory.
sudo chmod a+x ${bazelBin}
sudo ln -fs ${bazelBin} /usr/local/bin/bazel