Skip to content

Commit

Permalink
[8.0.0] Enable ignore_root_user_error for Python toolchain (#24567)
Browse files Browse the repository at this point in the history
Our CI fails to build Bazel, producing this error: "The current user is
root, please run as non-root when using the hermetic Python interpreter.
See bazelbuild/rules_python#713."

The workaround was suggested at
bazelbuild/rules_python#1169 (comment)

Closes #24549.

PiperOrigin-RevId: 702362811
Change-Id: Ib6d4da1e09fd2b7dfd68af02bbb0eb997e8f427c

Co-authored-by: Florian Weikert <[email protected]>
  • Loading branch information
keertk and fweikert authored Dec 4, 2024
1 parent 53ab6a0 commit 97cf1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ use_repo(
# =========================================

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.11", is_default = True)
python.toolchain(python_version = "3.11", is_default = True, ignore_root_user_error = True)

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

0 comments on commit 97cf1e2

Please sign in to comment.