This guide summarizes the essential workflows and policies for contributing to and maintaining the BCR.
Each module is organized under the modules/ directory:
modules/<name>/metadata.json: Module-level info (maintainers, versions, homepage).modules/<name>/<version>/:MODULE.bazel: The module's dependency definition.source.json: Source archive URL, integrity (SHA-256), and optional patches or overlay.presubmit.yml: CI configuration (platforms, build/test targets).patches/: .patch files to modify upstream source.overlay/: Files to add or overwrite in the upstream source..bcr.<N> to the version (e.g., 1.2.3 -> 1.2.3.bcr.1).cc_library) are being removed.bazel_dep(name = "rules_cc", version = "...") to MODULE.bazel.load("@rules_cc//cc:defs.bzl", "cc_library", ...) in BUILD files via patches.overlay/, include bazel_compatibility = [">=7.2.1"] in MODULE.bazel.@module_name syntax.//tools:add_module: Interactive scaffolding.//tools:update_integrity: SHA-256 automation.//tools:bcr_validation: Local CI check.//tools:setup_presubmit_repos: Local build reproduction.