Skip to content

Commit

Permalink
bazel: allow rules_python to run with root user
Browse files Browse the repository at this point in the history
This isn't ideal, but it sounds like it really only affects the ability
to cache *.pyc files. In our case, we have about a grand total of 3 or 4
files we compile with Python so I'm not sure it's worth the headache
right of figuring out a different way to deal with this.

bazelbuild/rules_python#1169

Useful for docker builds that require extra effort to use in a non-root
context.

Signed-off-by: Noah Watkins <[email protected]>
  • Loading branch information
dotnwat committed Jun 28, 2024
1 parent f193188 commit ea828bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ python = use_extension("@rules_python//python/extensions:python.bzl", "python",
python.toolchain(
is_default = True,
python_version = "3.12",
ignore_root_user_error = True,
)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
Expand Down

0 comments on commit ea828bc

Please sign in to comment.