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

Revert "Add support for imported_library when linking (#917)" #1020

Merged

Conversation

keith
Copy link
Member

@keith keith commented Mar 8, 2023

With recent rules_apple updates, libraries are added both to CcInfo and
ObjcProvider's imported_library, which results in duplicate symbols.
Removing this and only relying on CcInfo for this is the path moving
forward. Theoretically a custom rule that produced objc info with
imported_librarys would be broken by this, but they will have to migrate
either way as this provider goes away for linking.

This reverts commit b83db34.

With recent rules_apple updates, libraries are added both to CcInfo and
ObjcProvider's imported_library, which results in duplicate symbols.
Removing this and only relying on CcInfo for this is the path moving
forward. Theoretically a custom rule that produced objc info with
imported_librarys would be broken by this, but they will have to migrate
either way as this provider goes away for linking.

This reverts commit b83db34.
@lyft-lint-bot
Copy link

Lyft integration job started: https://buildkite.com/lyft/rules-swift/builds/826 (must be Lyft employee to view)

@keith keith marked this pull request as ready for review March 8, 2023 19:00
@keith keith enabled auto-merge (squash) March 8, 2023 19:00
@keith keith merged commit 2cdba50 into master Mar 8, 2023
@keith keith deleted the ks/revert-add-support-for-imported_library-when-linking-917 branch March 8, 2023 19:00
@brentleyjones
Copy link
Collaborator

This breaks Bazel 5, since those users can't upgrade to a newer version of rules_apple.

tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
…" (bazelbuild#1020)

With recent rules_apple updates, libraries are added both to CcInfo and
ObjcProvider's imported_library, which results in duplicate symbols.
Removing this and only relying on CcInfo for this is the path moving
forward. Theoretically a custom rule that produced objc info with
imported_librarys would be broken by this, but they will have to migrate
either way as this provider goes away for linking.

This reverts commit b83db34.
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 this pull request may close these issues.

None yet

3 participants