From 97cf1e22a107052719944bd1465ee3935675d656 Mon Sep 17 00:00:00 2001 From: keertk Date: Wed, 4 Dec 2024 08:46:32 -0800 Subject: [PATCH] [8.0.0] Enable ignore_root_user_error for Python toolchain (#24567) 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 https://github.com/bazelbuild/rules_python/pull/713." The workaround was suggested at https://github.com/bazelbuild/rules_python/issues/1169#issuecomment-1513804247 Closes #24549. PiperOrigin-RevId: 702362811 Change-Id: Ib6d4da1e09fd2b7dfd68af02bbb0eb997e8f427c Co-authored-by: Florian Weikert --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index d5b95a2113c68e..14fc32418c73d9 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -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(