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' with Bazel@HEAD #2108

Closed
sgowroji opened this issue Aug 10, 2023 · 0 comments · Fixed by #2111

Comments

@sgowroji
Copy link
Member

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3228#0189dd37-30ec-4e5c-a359-3f9586c3fa33

Logs :

ERROR: /var/lib/buildkite-agent/builds/bk-docker-l9gw/bazel-downstream-projects/rules_rust/examples/ffi/c_calling_rust/BUILD.bazel:14: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/0646a6bdc8f08e2cbf10d3832cbc28ee/external/platforms/os/BUILD (Tip: use `query "@platforms//os:*"` to see all the targets in that package)
(02:29:21) ERROR: Analysis of target '//ffi/c_calling_rust:main' failed; build aborted: Analysis failed
(02:29:21) INFO: Elapsed time: 1.193s
(02:29:21) INFO: 0 processes.
(02:29:21) ERROR: Build did NOT complete successfully

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

CC Greenteam @comius

keith added a commit to keith/rules_rust that referenced this issue Aug 10, 2023
illicitonion pushed a commit that referenced this issue Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant