Skip to content

Create xcodeproj_extra_files aspect hint #3150

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jflan-dd
Copy link

Create an aspect hint to allow dependencies to propagate up extra files that should be include in the Xcode navigator

@@ -34,6 +35,7 @@ project_options = _project_options
top_level_target = _top_level_target
top_level_targets = _top_level_targets
xcodeproj = _xcodeproj
xcodeproj_extra_files = _xcodeproj_extra_files
Copy link
Contributor

Choose a reason for hiding this comment

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

We are moving away from a single file for loads, so let’s instead just have the aspect hint live one level up.

Copy link
Author

Choose a reason for hiding this comment

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

Can you help me understand how I should structure the dependencies if I move the aspect hit up a level?

I need xcodeproj/internal/files/incremental_input_files.bzl to depend on the new aspect hit which I currently have defined in xcodeproj/xcodeproj_extra_files.bzl which I think is were you're suggesting I put it in this comment.

This results in xcodeproj_extra_files.bzl being included in the sources glob for the//xcodeproj:xcodeproj bzl_library, but since the xcodeproj library depends on //xcodeproj/internal I don't know how to resolve the dependency for xcodeproj/internal/files/incremental_input_files.bzl.

Copy link
Author

Choose a reason for hiding this comment

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

I moved things back to the way I could get the dependency tree working. Let me know if there's a better way to structure this.

@jflan-dd jflan-dd changed the title extra_files aspect hint Create xcodeproj_extra_files aspect hint Mar 27, 2025
@jflan-dd jflan-dd force-pushed the jflan/extra-files-aspect branch from 8e212cc to aea12b7 Compare May 13, 2025 16:16
Signed-off-by: John Flanagan <[email protected]>
@jflan-dd jflan-dd force-pushed the jflan/extra-files-aspect branch from aea12b7 to 742d3f6 Compare May 13, 2025 16:19
@jflan-dd jflan-dd marked this pull request as ready for review May 13, 2025 16:20
@jflan-dd jflan-dd requested a review from a team as a code owner May 13, 2025 16:20
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.

2 participants