Skip to content

Commit f78eae7

Browse files
authored
test: workaround cyclic dependency bzlmod bug by disabling lockfiles (#1705)
Bazel 7.0.1 has a bug where lockfiles can cause a bogus error about cyclic dependencies. Removing the lockfile or disabling the lockfiles prevents it from triggering. We aren't using lockfiles anyways. This should make CI happy, which uses 7.0.1 in some configurations. Local development isn't impacted because .bazelversion specifies 7.0.0 See bazelbuild/bazel#20942
1 parent 711186f commit f78eae7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ common --enable_bzlmod
3030
build:rtd --stamp
3131
# Some bzl files contain repos only available under bzlmod
3232
build:rtd --enable_bzlmod
33+
34+
# Disabled due to https://github.com/bazelbuild/bazel/issues/20942
35+
build --lockfile_mode=off

0 commit comments

Comments
 (0)