Example project for a Bazel dev environment and IDE support.
There is a minimal devcontainer available with a minimal set of dependencies such as git
, bazel
, direnv
, pre-commit
, and python
(for running Python packages outside of Bazel) and a few configuration steps executed when the container is created.
These should also be all the dependencies you need for a local setup outside of the devcontainer.
All other dependencies are managed by Bazel and bazel_env.bzl
.
To get started, run the following command:
direnv allow .envrc
bazel run //tools:bazel_env
Now you should see a list of tools available in your PATH
.
There are language specific examples for IDE support based on existing rules and tools managed by bazel_env.bzl
.
Some useful resources used for this project: