Skip to content

Commit a2789cc

Browse files
authored
test: make compile_pip_requirements work with bzlmod enabled (#1526)
Bazel at head has bzlmod enabled by default, so the example needs to be updated to work with bzlmod enabled. Work towards #1520
1 parent 843084d commit a2789cc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module(name = "compile_pip_requirements")
2+
3+
bazel_dep(name = "rules_python", version = "0.0.0")
4+
local_path_override(
5+
module_name = "rules_python",
6+
path = "../..",
7+
)
8+
9+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
10+
python.toolchain(
11+
python_version = "3.9",
12+
)

tests/compile_pip_requirements/WORKSPACE.bzlmod

Whitespace-only changes.

0 commit comments

Comments
 (0)