Skip to content

setting ignore_root_user_error to True in root module is not enough to avoid the root user error (bzlmod) #1658

@ziad-fernride

Description

@ziad-fernride

🐞 bug report

Affected Rule

The issue is caused by the rule: rule_python, python extension.

Description

Even when setting ignore_root_user_error = True in my root module, I still get the:
fail("The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.") when using a submodule that does not have the ignore_root_user_error attr set to True.

Shouldn't it be such that the root module decides that for the entire dep graph ? Similar to the is_default attribute ?

Rules_python version:
0.27.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions