Skip to content

Commit

Permalink
WIP: Bzlmod part the forty-third
Browse files Browse the repository at this point in the history
Have Bazel ignore third_party/test/example_external_workspace explicitly
until bazelbuild/bazel#22208 is resolved.

Fixes `bazel test //third_party/...`.

See also:

- https://blog.engflow.com/2024/06/27/migrating-to-bazel-modules-aka-bzlmod---the-easy-parts/#ignore-local_repository-and-local_path_override-paths
  • Loading branch information
mbland committed Oct 7, 2024
1 parent 05e22b1 commit d9f86e8
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Remove once the following is fixed:
# - bazelbuild/bazel: Loading top-level targets in local_path_override modules
# in child directory breaks the build #22208
# https://github.com/bazelbuild/bazel/issues/22208
third_party/test/example_external_workspace
6 changes: 6 additions & 0 deletions third_party/test/example_external_workspace/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
64 changes: 64 additions & 0 deletions third_party/test/example_external_workspace/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9f86e8

Please sign in to comment.