Bazel crash on toolchain registration if toolchain declaration has incompatible dependency #23846
Labels
more data needed
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: bug
untriaged
Description of the bug:
Bazel crashes if, when registering a toolchain, in the chain of its dependencies
it encounters a target with
target_compatible_with = ["@platforms//:incompatible"]
set.Which category does this issue belong to?
Configurability, Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
does not matter
What is the output of
bazel info release
?release 7.1.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No.
Any other information, logs, or outputs that you want to share?
Code for the example: https://github.com/alexander-shiryaev/bazel_issue/tree/main/bug/bazel_crash_on_error_during_toolchain_registration
The text was updated successfully, but these errors were encountered: