Skip to content

Commit

Permalink
fix(bzlmod): expose ignore_root_user_error attribute from python_regi…
Browse files Browse the repository at this point in the history
…ster_toolchains (bazelbuild#1114)
  • Loading branch information
alexeagle authored and ianpegg-bc committed May 12, 2023
1 parent 38ad3c1 commit e9b3d4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def _python_impl(module_ctx):
# Toolchain registration in bzlmod is done in MODULE file
register_toolchains = False,
register_coverage_tool = attr.configure_coverage_tool,
ignore_root_user_error = attr.ignore_root_user_error,
)

python = module_extension(
Expand All @@ -41,6 +42,7 @@ python = module_extension(
mandatory = False,
doc = "Whether or not to configure the default coverage tool for the toolchains.",
),
"ignore_root_user_error": attr.bool(),
"name": attr.string(mandatory = True),
"python_version": attr.string(mandatory = True),
},
Expand Down

0 comments on commit e9b3d4c

Please sign in to comment.