🐞 bug report
Description
Can not use @rules_python//python/cc:current_py_cc_headers in WORKSPACE mode because the toolchain fails to resolve. The WORKSPACE file is setting up a hermetic interpreter via python_register_toolchains.
Note that the target works as expected when using a MODULE.bazel.
🔬 Minimal Reproduction
See repro repo: https://github.com/lalten/current_py_cc_headers
🔥 Exception or Error
@@rules_python//python/cc:current_py_cc_headers (5b7f3da): No matching toolchains found for types @@rules_python//python/cc:toolchain_type.
🌍 Your Environment
Operating System: ubuntu-latest
Output of bazel version: 7.0.0
Rules_python version: 0.27.1
🐞 bug report
Description
Can not use
@rules_python//python/cc:current_py_cc_headersin WORKSPACE mode because the toolchain fails to resolve. The WORKSPACE file is setting up a hermetic interpreter viapython_register_toolchains.Note that the target works as expected when using a MODULE.bazel.
🔬 Minimal Reproduction
See repro repo: https://github.com/lalten/current_py_cc_headers
🔥 Exception or Error
@@rules_python//python/cc:current_py_cc_headers (5b7f3da): No matching toolchains found for types @@rules_python//python/cc:toolchain_type.🌍 Your Environment
Operating System:
ubuntu-latestOutput of
bazel version:7.0.0Rules_python version:
0.27.1