-
Notifications
You must be signed in to change notification settings - Fork 65
Bazel tips and tricks
Sayantan Sarkar edited this page Aug 24, 2019
·
6 revisions
- Check if machine has bazel by running
which bazel
- Run
bazel version
. If it complains "somedir not found" trymkdir somedir
- Get the recommended bazel using the following command:
wget https://github.com/bazelbuild/bazel/releases/download/<VERSION>/bazel-<VERSION>-installer-linux-x86_64.sh
. See README.md for exact version mkdir ~/.cache/bazel/
- Make a directory
/localdisk/<username>/bazel_cache/_bazel_<username>
Then, use it for caching:ln -sf /localdisk/<username>/bazel_cache/_bazel_<username> ~/.cache/bazel/_bazel_<username>
- Install bazel
bash bazel-0.25.2-installer-linux-x86_64.sh --user
-
ls /localdisk/<username>/bazel_cache/_bazel_<username>/
should show 2 items, one namesinstall