A sandbox environment for experimenting with robotics concepts and tools.
Install Bazelisk by following the instructions on the Bazelisk GitHub page.
brew install bazelisk
If you do not have curl, install it using:
sudo apt-get install curl
Then download Bazelisk (choose the correct architecture):
curl -LO "https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64"
curl -LO "https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-arm64"
Make bazelisk executable
chmod +x bazelisk-linux-amd64
Move Bazelisk to a directory in your PATH:
sudo mv bazelisk-linux-amd64 /usr/local/bin/bazel
Verify the installation (this will install the appropriate Bazel version and print it):
bazel --version
From the root directory of the project, run:
bazel run //path/to/package:target_name
Where:
path/to/package
is the relative path to the directory containing the BUILD or BUILD.bazel file.target_name
is the name attribute of a rule like py_binary, cc_binary, or sh_binary.