bazelbuild / examples

Examples for Bazel
http://bazel.build
Apache License 2.0
804 stars 498 forks source link

Error " no such target '@platforms//os:visionos': target 'visionos' not declared in package 'os' defined " with Bazel@HEAD #299

Closed sgowroji closed 11 months ago

sgowroji commented 11 months ago

Misc : https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3225#0189d812-974f-43a7-8c36-2b8ee3698598 Tutorials : https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3225#0189d812-975e-4952-bd70-d66c1799aeba

Platform : Ubuntu, Windows, MacOS

Logs :


(02:18:31) ERROR: /var/lib/buildkite-agent/builds/bk-docker-w343/bazel-downstream-projects/examples/third-party-dependencies/BUILD:25:8: every rule of type cc_test implicitly depends upon the target '@platforms//os:visionos', but this target could not be found because of: no such target '@platforms//os:visionos': target 'visionos' not declared in package 'os' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/7489e48fc206ad815776baf35d7720c8/external/platforms/os/BUILD (Tip: use `query "@platforms//os:*"` to see all the targets in that package)
(02:18:31) ERROR: Analysis of target '//:catch2_test' failed; build aborted: Analysis failed

Steps :

git clone https://github.com/bazelbuild/examples.git
git reset ce89f49f7d693f91edce676d7de587202ae0cd66 --hard
export USE_BAZEL_VERSION=4e525df01227a5a18be002784210a13d9515f10b
cd third-party-dependencies
bazel build ...

Culprit : https://github.com/bazelbuild/bazel/pull/18905#issuecomment-1670976366

CC Greenteam @comius