This directory contains tooling scripts and configurations for the submitqueue repository.
Bazel Wrapper
The tool/bazel script is a Python-based Bazelisk implementation that:
- Reads
.bazelversion from the repository root
- Automatically downloads and caches the correct Bazel version
- Delegates all commands to that version
Usage
# Use the wrapper directly
./tool/bazel build //...
# Or add tool/ to your PATH (via .envrc with direnv)
bazel build //...
Version Management
The Bazel version is controlled by .bazelversion at the repository root. Update that file to change the Bazel version used by the wrapper.
When adding new tools to this directory:
- Create the script in
tool/
- Make it executable:
chmod +x tool/<script-name>
- Add it to
tool/BUILD.bazel if it needs to be referenced by Bazel rules
- Document it in this README
Environment Setup
This directory is added to PATH via .envrc (for direnv users), allowing you to run bazel commands without prefixing with ./tool/.