Description
Description of the problem / feature request:
The documentation for Platforms has a section on "more expressive constraints" that does not work by default in Bazel 5.0.0. The platforms code that is included with Bazel does not include the "@platforms://incompatible" target. I checked the BUILD file in external/platforms and it is missing the lines that define "incompatible" in this platforms file.
This means the documentation for using platforms is incomplete because there is a way to change the underlying platforms version or incorrect because the feature is not available.
Feature requests: what underlying problem are you trying to solve with this feature?
Use the "more expressive constraints" as documented in the Platforms documentation.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Add the following constraing to any target in a BUILD file.
target_compatible_with = ["@platforms//:incompatible"],
and you will get an error similar to the following error:
ERROR: BUILD.bazel:3:8: no such target '@platforms//:incompatible': target 'incompatible' not declared in package '' defined by <bazel_root>external/platforms/BUILD and referenced by ''
What operating system are you running Bazel on?
Windows, Linux and Mac
What's the output of bazel info release
?
release 5.0.0
Have you found anything relevant by searching the web?
A few references to the documentation that does not work out of the box.