-
Notifications
You must be signed in to change notification settings - Fork 85
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
Remove swift info provider creation inside hmap rule #919
Conversation
module_map = None, | ||
), | ||
)], | ||
) | ||
providers = [ | ||
DefaultInfo( | ||
files = depset([headermap]), | ||
), | ||
apple_common.new_objc_provider(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should try to remove this as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my understanding is bazel 6 still need it. but i can be wrong.
I feel that demands a separate PR to just remove all apple_common.Objc
references? Also helps when have test against bazel "7.4" / nightly as the API apple_common.Objc
is just gone now: https://bazel.build/rules/lib/toplevel/apple_common
Last place that touched this code is on https://github.com/bazel-ios/rules_ios/pull/906where I thought it's important to construct SwiftInfo provider for hmap and add compilation context to pass the failing test.
However that leads to a new issue with
docc_archive
rule with latestrules_apple/rules_swift
. We realized it's actually not needed to provide any SwiftInfo provider at all or it will "confuse" rules_swift/apple (since newer version starts to rely more on clang info from Swift info itself insteadapple_common.Objc
). Removing this also have the original failing test passing.Tests done:
Will squash before merge as it contains already merged commits