Inconsistent transitive dependency version when WORKSPACE and MODULE.bazel coexist
0 reputation · 18 Oct 2023, 07:15 UTC
Ensure that a Bazel build produces identical external dependency graphs across developer machines when a project contains both a WORKSPACE file and a MODULE.bazel file during the migration to Bzlmod.
The effective version of a transitive dependency may differ depending on the Bazel release, the presence of local override files, or whether the experimental Bzlmod flag is enabled, leading to non‑repeatable builds across teams.
Which file takes precedence when both are present? Does enabling the --experimental_bzlmod flag alter this precedence? Are there specific .bazelrc settings that force consistent resolution?