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

Apply filtering logic to generated extra_files, and xccurrentversions as well #442

Merged
merged 2 commits into from
May 18, 2022

Conversation

brentleyjones
Copy link
Contributor

@brentleyjones brentleyjones commented May 18, 2022

This prevents the generated_inputs output group from having unnecessary files in it. This filtering is very redundant, and error prone (as shown by this and previous changes applying missing filtering). This will get addressed with the forthcoming input file collection refactor.

This prevents the `generated_inputs` output group from having unnecessary files in it.
for attr, info in transitive_infos
if (not attrs_info or
info.target_type in
attrs_info.xcode_targets.get(attr, [None]))
Copy link
Contributor

@cgrindel cgrindel May 18, 2022

Choose a reason for hiding this comment

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

Curious. Why return a default of [None] vs []?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it does an in check, and info.target_type can be None, and that needs to be True.

This filtering is very redundant, and error prone (as shown by this and previous changes applying missing filtering). This will get addressed with the forthcoming input file collection refactor.
@brentleyjones brentleyjones changed the title Filter generated files the same as other files Apply filtering logic to generated extra_files, and xccurrentversions as well May 18, 2022
@brentleyjones brentleyjones merged commit 2ba0628 into main May 18, 2022
@brentleyjones brentleyjones deleted the bj/filter-generated-files-the-same-as-other-files branch May 18, 2022 12:47
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