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

Remove support to propagate frameworks via objc_library.runtime_deps #1918

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

keith
Copy link
Member

@keith keith commented Mar 21, 2023

f711be0 added support to propagate Apple frameworks using data
rule attribute for both objc_library and swift_library targets. This
change now removes support to propagate frameworks via runtime_deps.

PiperOrigin-RevId: 514762665
(cherry picked from commit 7d0ec13)

stravinskii and others added 5 commits March 20, 2023 17:18
Adds support to propagate Apple frameworks (ie. `ios_framework`,
`tvos_framework`) through the `data` attribute from transitive
libraries (ie. `objc_library` and `swift_library`) using the
resource aspect.

Currently, Apple frameworks (`*_framework` targets) are supported
using the `runtime_deps` attribute for `objc_library` targets
through the framework provider aspect (support was added at
1199da0 and 889131a). This support will be deprecated
on a follow-up change.

PiperOrigin-RevId: 513139752
(cherry picked from commit f711be0)
…e_deps

This only takes the tests from the cherry picked commit to maintain
untested backwards compatibility until we drop bazel 6.x support

f711be0 added support to propagate Apple frameworks using `data`
rule attribute for both objc_library and swift_library targets. This
change now removes support to propagate frameworks via `runtime_deps`.

PiperOrigin-RevId: 514762665
(cherry picked from commit 7d0ec13)
@keith
Copy link
Member Author

keith commented Mar 21, 2023

can't do this until we want to no longer support runtime_deps

keith referenced this pull request Mar 21, 2023
f711be0 added support to propagate Apple frameworks using `data`
rule attribute for both objc_library and swift_library targets. This
change now removes support to propagate frameworks via `runtime_deps`.

PiperOrigin-RevId: 514762665
keith and others added 6 commits March 21, 2023 11:47
This fixes the watchos_extension case, but isn't how ios_extensions
work, so remove my WIP test for that
…cts.

Current logic incorrectly assumes `files` is a single framework,
and thus bundles all frameworks to the same location. If there
are multiple frameworks bundled, the partial should iterate each
bundle and source the correct bundle name to set as a parent
directory when tree artifacts are enabled.

PiperOrigin-RevId: 514821470
(cherry picked from commit 644face)
f711be0 added support to propagate Apple frameworks using `data`
rule attribute for both objc_library and swift_library targets. This
change now removes support to propagate frameworks via `runtime_deps`.

PiperOrigin-RevId: 514762665
(cherry picked from commit 7d0ec13)
@keith keith force-pushed the ks/remove-support-to-propagate-frameworks-via-objc_library.runtime_deps branch from bb5b2bb to a4ff994 Compare March 22, 2023 00:15
@keith keith force-pushed the ks/support-propagating-frameworks-via-objc-swift_library-data-attribute branch from 10c3608 to 6911fe6 Compare April 3, 2023 23:00
Base automatically changed from ks/support-propagating-frameworks-via-objc-swift_library-data-attribute to master April 3, 2023 23:13
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

2 participants