local_repository vs http_archive for Private Dependencies Under Hermetic Sandbox
Trade-off: Local Path Shortcut vs Reproducible Fetch A workspace declares a private dependency that exists on developer machines at a fixed absolute path. Using local_repository in WORKSPACE (or MODULE.bazel with local_path_override ) lets the build succeed locally without network access. In production CI and remote execution, the same absolute path does not