8000 fix(bzlmod): expose ignore_root_user_error attribute from python_regi… · jml-derek/rules_python@0ba98a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ba98a6

Browse files
authored
fix(bzlmod): expose ignore_root_user_error attribute from python_register_toolchains (bazel-contrib#1114)
1 parent 244c606 commit 0ba98a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/extensions.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def _python_impl(module_ctx):
3030
# Toolchain registration in bzlmod is done in MODULE file
3131
register_toolchains = False,
3232
register_coverage_tool = attr.configure_coverage_tool,
33+
ignore_root_user_error = attr.ignore_root_user_error,
3334
)
3435

3536
python = module_extension(
@@ -41,6 +42,7 @@ python = module_extension(
4142
mandatory = False,
4243
doc = "Whether or not to configure the default coverage tool for the toolchains.",
4344
),
45+
"ignore_root_user_error": attr.bool(),
4446
"name": attr.string(mandatory = True),
4547
"python_version": attr.string(mandatory = True),
4648
},

0 commit comments

Comments
 (0)
0