rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Turn on incompatible_python_disallow_native_rules for end-to-end tests

Open alexeagle opened this issue 6 months ago • 2 comments

I'd like to enable that option in a repo downstream of rules_python, but it seems like there's a violation shipped with the project:

ERROR: /private/var/tmp/_bazel_alexeagle/3eecd93732ac7c6f4f360a54a468da50/external/rules_python~0.27.1~python~python_3_9_aarch64-apple-darwin/BUILD.bazel:63:11: in py_runtime rule @@rules_python~0.27.1~python~python_3_9_aarch64-apple-darwin//:py3_runtime: 
Traceback (most recent call last):
        File "/virtual_builtins_bzl/common/python/py_runtime_rule.bzl", line 24, column 25, in _py_runtime_impl
        File "/virtual_builtins_bzl/common/python/common.bzl", line 489, column 28, in check_native_allowed
Error in Label: invalid label in Label(): invalid package name '__EXTERNAL_REPOS__/rules_python~0.27.1~python~python_3_9_aarch64-apple-darwin/': package names may not end with '/' (perhaps you meant ":"?)

alexeagle avatar Dec 21 '23 00:12 alexeagle