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
fail_msg="Failed to make interpreter installation read-only. 'chmod' error msg: {}".format(
116
+
exec_result.stderr,
117
+
)
118
+
fail(fail_msg)
119
+
exec_result=rctx.execute(["touch", "lib/.test"])
120
+
ifexec_result.return_code==0:
121
+
exec_result=rctx.execute(["id", "-u"])
122
+
ifexec_result.return_code!=0:
123
+
fail("Could not determine current user ID. 'id -u' error msg: {}".format(
124
+
exec_result.stderr,
125
+
))
126
+
uid=int(exec_result.stdout.strip())
127
+
ifuid==0:
128
+
fail("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.")
129
+
else:
130
+
fail("The current user has CAP_DAC_OVERRIDE set, please drop this capability when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.")
0 commit comments