diff options
author | Richard Levasseur <rlevasseur@google.com> | 2023-07-18 09:45:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 16:45:54 +0000 |
commit | 5416257a4956f531ab88655c1e9c9c69e551fe7e (patch) | |
tree | 4492ed2349d3efb81201e48e17c5676c5de02609 | |
parent | 49d2b7aadb084ac7cae48583c38af6da2ce41a02 (diff) | |
download | bazelbuild-rules_python-5416257a4956f531ab88655c1e9c9c69e551fe7e.tar.gz |
test: Remove testonly=True from test toolchain implementations (#1327)
Upcoming Bazel versions enforce testonly-ness through toolchain lookup,
so when `:current_py_cc_headers` depends on (via toolchain lookup) a
`py_cc_toolchain(testonly=True)` target, an error occurs.
To fix, just remove testonly=True from the toolchain implementation.
Fixes #1324
-rw-r--r-- | tests/cc/BUILD.bazel | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/cc/BUILD.bazel b/tests/cc/BUILD.bazel index 1339557..876d163 100644 --- a/tests/cc/BUILD.bazel +++ b/tests/cc/BUILD.bazel @@ -28,7 +28,6 @@ toolchain( py_cc_toolchain( name = "fake_py_cc_toolchain_impl", - testonly = True, headers = ":fake_headers", python_version = "3.999", tags = PREVENT_IMPLICIT_BUILDING_TAGS, @@ -37,7 +36,6 @@ py_cc_toolchain( # buildifier: disable=native-cc cc_library( name = "fake_headers", - testonly = True, hdrs = ["fake_header.h"], data = ["data.txt"], includes = ["fake_include"], |