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

Update rules for ObjcProvider deprecations #850

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

luispadron
Copy link
Collaborator

@luispadron luispadron commented Mar 11, 2024

In Bazel 7+ ObjcProvider no longer supports/provides the required linking attributes.

The migrations is detailed here: bazelbuild/bazel#16939. In summary, as part of the migration, the ObjcProvider fields which previously provided linking related information are now now longer providing that info. In addition to this, a new flag: --incompatible_objc_linking_info_migration was added to further delete these link attrs from the ObjcProvider making it an error if the attr is used or set.

The goal of this PR is to address support for ObjcProvider migration and to instead use the correct linking information from CcInfo. This will support both Bazel 6/7+. It does not try to support --incompatible_objc_linking_info_migration as that requires more changes and should be a separate PR

Depends on:

@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch 2 times, most recently from 54f23fd to d120169 Compare March 11, 2024 23:11
@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch 6 times, most recently from 89d3b46 to b25d77a Compare March 15, 2024 18:45
@luispadron luispadron changed the base branch from master to luis/update-transition_support March 15, 2024 18:46
Base automatically changed from luis/update-transition_support to master March 15, 2024 19:12
@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch 3 times, most recently from 1418b1a to 476584a Compare March 19, 2024 17:23
@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch 2 times, most recently from a1761ca to 2cdd6ee Compare March 27, 2024 06:26
@luispadron luispadron marked this pull request as ready for review March 27, 2024 14:09
rules/force_load_direct_deps.bzl Show resolved Hide resolved
rules/import_middleman.bzl Outdated Show resolved Hide resolved
@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch 4 times, most recently from d04484b to 4dcd8ac Compare April 2, 2024 21:58
@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch 2 times, most recently from 1fe8de7 to cf1ba61 Compare April 10, 2024 17:45
@luispadron luispadron force-pushed the luis/update-ccinfo-for-objc-provider-deprecation branch from 5513720 to 4b4fad7 Compare April 11, 2024 15:43
Copy link
Contributor

@thiagohmcruz thiagohmcruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for improving the readability here as part of this 🙇

@luispadron luispadron merged commit 795191e into master Apr 18, 2024
7 checks passed
@luispadron luispadron deleted the luis/update-ccinfo-for-objc-provider-deprecation branch April 18, 2024 15:16
luispadron added a commit that referenced this pull request Apr 18, 2024
This PR adds 7.1.0 as a tested version in CI. It additionally updates
the README to specify the next release will officially support Bazel 7+

Depends on: 

- #848 
- #847
- #850 

Closes #795
thiagohmcruz added a commit that referenced this pull request Jun 5, 2024
Can be considered a follow up to
#850 to fix
`import_middleman` in Bazel 7 while keeping it backwards compatible with
Bazel 6.
nataliejameson pushed a commit to discord/rules_ios that referenced this pull request Aug 13, 2024
Can be considered a follow up to
bazel-ios/rules_ios#850 to fix
`import_middleman` in Bazel 7 while keeping it backwards compatible with
Bazel 6.
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.

3 participants