REA Bazel notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Bazel MODULE.bazel / WORKSPACE files carry external dependency identity for hermetic builds. In REA 6.7.x, treat them as Evidence beside archive/native routes — not as a live Bazel executor.

Mental model

  1. Authorize the MODULE/WORKSPACE tree (+ lock/pin files like MODULE.bazel.lock when present).
  2. Quote selected module names/versions and apparent external pins you actually see.
  3. Built archives/binaries → documented REA archive/native routes on absolute paths.
  4. Cousin build identity → rea-cmake-exports when the case is CMake, not Bazel.
  5. Do not invent a bazel query graph REA never ran.

Minimal path

# authorized MODULE.bazel / WORKSPACE (+ local build outputs you hold)
# quote selected module/external pins into case notes
# REA archive/native routes on /absolute/path/artifact --json
# do not invent: rea inspect_bazel .

Compare

ArtifactHonest posture
MODULE.bazel / WORKSPACEBazel external identity facts
CMake exportsrea-cmake-exports
SBOM cousinsrea-sbom-notes
Go/Rust module cousinsrea-go-modules / rea-cargo-metadata

Scope we will not cover

  • No inventing inspect_bazel / automatic registry crawlers.
  • No Bazel remote-cache or registry credential theft.
  • No pirate redistribution of proprietary external deps.
  • No crack framing for commercial binaries built with Bazel.

RepoRead is unofficial. Prefer module/archive honesty + DISCLAIMER.md.

FAQ

MODULE.bazel vs WORKSPACE?

Newer Bazel projects lean on MODULE.bazel (Bzlmod); older trees use WORKSPACE (+ often WORKSPACE.bazel). Quote whichever files you were given — do not invent a migration REA never performed.

Is there inspect_bazel in 6.7.0?

Not assumed. Quote module/external pins you actually open, then use documented archive/native lanes. Do not invent inspect_bazel.

Does REA run bazel fetch or talk to registries?

No. Local trees and artifacts only. No registry credential theft.

How does this relate to CMake exports?

rea-cmake-exports covers CMake package export identity. Bazel is a different build graph — keep Evidence labels separate.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources