You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! It looks like rules_pkg depends on rules_python. This rule calls fail when the current user is root.
ERROR: /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/rules_pkg~/pkg/private/tar/BUILD:47:10: @@rules_pkg~//pkg/private/tar:build_tar depends on @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain in repository @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu which failed to fetch. no such package '@@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//': 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.
My project doesn't use python, but to work around this error I add rules_python to my module file and patch out the check that fails.
Hey! It looks like
rules_pkg
depends onrules_python
. This rule callsfail
when the current user is root.My project doesn't use python, but to work around this error I add
rules_python
to my module file and patch out the check that fails.Looking on the
rules_python
issue tracker someone mentioned that you can configure this behavior.Would it be possible to configure this in your
MODULE.bazel
?The text was updated successfully, but these errors were encountered: