Skip to content

Commit da0f302

Browse files
committed
chore: add an override for bzlmod example
1 parent 0db4c99 commit da0f302

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

examples/bzlmod/other_module/MODULE.bazel

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,10 @@ module(
55
# This module is using the same version of rules_python
66
# that the parent module uses.
77
bazel_dep(name = "rules_python", version = "")
8-
9-
# The story behind this commented out override:
10-
# This override is necessary to generate/update the requirements file
11-
# for this module. This is because running it via the outer
12-
# module doesn't work -- the `requirements.update` target can't find
13-
# the correct file to update.
14-
# Running in the submodule itself works, but submodules using overrides
15-
# is considered an error until Bazel 6.3, which prevents the outer module
16-
# from depending on this module.
17-
# So until 6.3 and higher is the minimum, we leave this commented out.
18-
# local_path_override(
19-
# module_name = "rules_python",
20-
# path = "../../..",
21-
# )
8+
local_path_override(
9+
module_name = "rules_python",
10+
path = "../../..",
11+
)
2212

2313
PYTHON_NAME_39 = "python_3_9"
2414

0 commit comments

Comments
 (0)