Skip to content

Commit 5416257

Browse files
authored
test: Remove testonly=True from test toolchain implementations (bazel-contrib#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 bazel-contrib#1324
1 parent 49d2b7a commit 5416257

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/cc/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ toolchain(
2828

2929
py_cc_toolchain(
3030
name = "fake_py_cc_toolchain_impl",
31-
testonly = True,
3231
headers = ":fake_headers",
3332
python_version = "3.999",
3433
tags = PREVENT_IMPLICIT_BUILDING_TAGS,
@@ -37,7 +36,6 @@ py_cc_toolchain(
3736
# buildifier: disable=native-cc
3837
cc_library(
3938
name = "fake_headers",
40-
testonly = True,
4139
hdrs = ["fake_header.h"],
4240
data = ["data.txt"],
4341
includes = ["fake_include"],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy