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

Bug: Support Bazel 6 --incompatible_unambiguous_label_stringification #1203

Closed
erikkerber opened this issue Oct 3, 2022 · 0 comments · Fixed by #1218
Closed

Bug: Support Bazel 6 --incompatible_unambiguous_label_stringification #1203

erikkerber opened this issue Oct 3, 2022 · 0 comments · Fixed by #1218
Assignees
Labels
bug Something isn't working

Comments

@erikkerber
Copy link
Contributor

erikkerber commented Oct 3, 2022

Describe the bug

Generating BwX with Bazel 6 may result in the error similar to:

ERROR: Internal precondition failure:
Target //App:Slack was not found in the transitive dependencies of @//App:Slack-BwX.generator's `top_level_targets` attribute. Did you reference an alias (only actual target labels are supported in Scheme definitions)? Check that //App:Slack is spelled correctly, and if it is, add it or a target that depends on it to @//App:Slack-BwX.generator's `top_level_targets` attribute.
Please file a bug report at https://github.com/buildbuddy-io/rules_xcodeproj/issues/new?template=bug.md

Setting --noincompatible_unambiguous_label_stringification can help project generation, but it may fail on repos that relied on referencing its own workspace name, such as those who use the provisioning_profile_repository rule:

bazelbuild/bazel#15916

Reproduction steps

Generate a BwX project in Bazel 6 (6.0.0-pre.20220922.1)

Expected behavior

Versions

  • Bazel: 6.0.0-pre.20220922.1
  • rules_xcodeproj: 0.8+ (df3fc20173e24df2f981104e81594008053c97bd53171b34269cb71cee6fbd25)
  • rules_apple: 1.1.2
  • rules_swift: 1.2.0

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants