Skip to content

Commit

Permalink
test: workaround cyclic dependency bzlmod bug by disabling lockfiles (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
rickeylev authored Jan 20, 2024
1 parent 711186f commit f78eae7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ common --enable_bzlmod
build:rtd --stamp
# Some bzl files contain repos only available under bzlmod
build:rtd --enable_bzlmod

# Disabled due to https://github.com/bazelbuild/bazel/issues/20942
build --lockfile_mode=off

0 comments on commit f78eae7

Please sign in to comment.