Skip to content

Commit feb354f

Browse files
fweikertcopybara-github
authored andcommitted
Enable ignore_root_user_error for Python toolchain
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 bazel-contrib/rules_python#713." The workaround was suggested at bazel-contrib/rules_python#1169 (comment) Closes #24549. PiperOrigin-RevId: 702362811 Change-Id: Ib6d4da1e09fd2b7dfd68af02bbb0eb997e8f427c
1 parent e3e0356 commit feb354f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ python = use_extension("@rules_python//python/extensions:python.bzl", "python")
266266
python.toolchain(
267267
is_default = True,
268268
python_version = "3.11",
269+
ignore_root_user_error = True,
269270
)
270271

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy