-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current user is root, please run as non-root when using the hermetic Python interpreter #166
Comments
Hey @372046933, seems from the caveats about that flag in their docs (and it being undocumented for python_register_toolchains as opposed to bzlmod) that we should be careful with this one, doubly because they say it's ignored outside the root module, which this will almost never be. Any chance I could ask you to give me a little more context? Is this in a container or CI or something where everything's running as root? More generally, we're seeing enough problems/bugs with bazel's rules_python that we might revert back to builtin python for now. Would you be down to report the underlying issue to https://github.com/bazelbuild/rules_python, so they know what would be good to support here, or chime in on bazelbuild/rules_python#1169 if that seems better? And then, as a workaround, please make sure that all works fine with 6d58fa6, the commit before we switched to rules_python? (While using that one as a workaround, go ahead and delete all our transitive workspace setup calls from your WORKSPACE.) |
@cpsauer I was in a container where everything is running as root. All works fine before |
Yeah, no I get it--and really appreciate your writing in to write in to report with a proposed fix no less. That said, I think the move here is for us to roll back the move to rules_python. We're just seeing a lot of brokenness there, this included, and there are some strong caveats there (like that we can't fix this with bzlmod) |
Mostly reverts 0e5b1aa Tracking restoration at #168 Please see - #163 - bazelbuild/rules_python#1732 - #165 - (rules_python issue to come) - #166 - bazelbuild/rules_python#1169
Reverted rules_python in 0b821b7. Tracking restoration in #168. That avoids this for now, but seriously, worth chiming in on bazelbuild/rules_python#1169 so they fix it for future use. Thanks again for helping leave things better than you found them! |
Mostly reverts hedronvision/bazel-compile-commands-extractor@59dc7ff Tracking restoration at hedronvision/bazel-compile-commands-extractor#168 Please see - hedronvision/bazel-compile-commands-extractor#163 - bazelbuild/rules_python#1732 - hedronvision/bazel-compile-commands-extractor#165 - (rules_python issue to come) - hedronvision/bazel-compile-commands-extractor#166 - bazelbuild/rules_python#1169
bazel-compile-commands-extractor/workspace_setup_transitive.bzl
Lines 31 to 35 in c4918fa
Possible fix
The text was updated successfully, but these errors were encountered: