Bazel for ROS 2: Caching, Hermetic Builds and the Registry Approach

A concept guide to building ROS 2 with Bazel: why colcon repeats work, how caching, sandboxing and remote execution help, the ROS-specific problems a Bazel registry had to solve, and the costs.

In this article

  • Why colcon rebuilds more than you think
  • What Bazel does differently
  • Bazel modules are the enabling feature
  • What the registry does, as described
  • The ROS assumptions Bazel breaks
  • Contributing and releases
  • The costs, stated honestly
  • When this is worth it