Skip to content

test: Remove testonly=True from test toolchain implementations#1327

Merged
rickeylev merged 1 commit intobazel-contrib:mainfrom
rickeylev:pycc.testonly.error
Jul 18, 2023
Merged

test: Remove testonly=True from test toolchain implementations#1327
rickeylev merged 1 commit intobazel-contrib:mainfrom
rickeylev:pycc.testonly.error

Conversation

@rickeylev
Copy link
Copy Markdown
Collaborator

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

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
@rickeylev rickeylev enabled auto-merge July 18, 2023 16:30
@rickeylev rickeylev added this pull request to the merge queue Jul 18, 2023
Merged via the queue into bazel-contrib:main with commit 5416257 Jul 18, 2023
@rickeylev rickeylev deleted the pycc.testonly.error branch July 25, 2023 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

target '//python/cc:current_py_cc_headers' failed in Bazel CI

2 participants