Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sgowroji opened this issue Aug 10, 2023 · 1 comment

Comments

@sgowroji
Copy link

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3228#0189dd37-3de0-44aa-a902-8b972ba1d85f

Logs

 ERROR: /var/lib/buildkite-agent/builds/bk-docker-6ckp/bazel-downstream-projects/protobuf/java/core/BUILD.bazel:352:12: every rule of type java_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/032519c13f4a1e9846955652c520b8e2/external/platforms/os/BUILD (Tip: use `query "@platforms//os:*"` to see all the targets in that package)
(02:21:58) ERROR: Analysis of target '//java/core:DeprecatedFieldTest' failed; build aborted: Analysis failed
(02:21:58) INFO: Elapsed time: 1.394s
(02:21:58) INFO: 0 processes.
(02:21:58) ERROR: Build did NOT complete successfully
(02:21:58) ERROR: Couldn't start the build. Unable to run tests

By upgrading the "platform" version to 0.0.7 which adds "visionos" support. bazelbuild/bazel#18905 (comment)

CC Greenteam @comius

@sgowroji sgowroji added the untriaged auto added to all issues by default when created. label Aug 10, 2023
keith added a commit to keith/protobuf that referenced this issue Aug 10, 2023
@zhangskz zhangskz added packaging & distribution bazel and removed untriaged auto added to all issues by default when created. labels Aug 28, 2023
@zhangskz zhangskz self-assigned this Aug 28, 2023
@keith
Copy link
Contributor

keith commented Aug 28, 2023

#13509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants