Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Use symlink as ot/xargs does not support aliases

...

Code Block
$ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-darwin-amd64
$ chmod +x bazelisk-darwin-amd64
$ sudo mv bazelisk-darwin-amd64 /usr/local/bin/bazel
$ cd ~/onos
$ bazel version

On Alternatively, on macOS, Bazelisk can be installed via theĀ Brew package manager:

Code Block
languagebash
$ brew install bazelisk
$ echo 'alias bazel="bazelisk"' >> ~/.bash_profile # if you use BASH, or ~/.zshrc is you use ZSHln -s $(which bazelisk) /usr/local/bin/bazel # Create symlink to use as a drop-in replacement to the bazel command
$ cd ~/onos
$ bazel version

...