Skip to content

Emit warnings when conflicts detected in Info.plist key values #364

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

Merged
0 commits merged into from
Mar 31, 2025

Conversation

theSalted
Copy link

When a building setting is set from an info.plist key, if the same key is set from another source. The previous one will be silently overwritten. This pull request added detectConflict() to detects if two PropertyListItem values are in conflict and emits an appropriate warning message if they are.

Resolves #5

@theSalted
Copy link
Author

@swift-ci test

Copy link
Collaborator

@owenv owenv left a comment

Choose a reason for hiding this comment

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

This looks great, thanks. Before it lands, do you mind adding a test to InfoPlistProcessorTaskTests.swift which validates the new warnings? infoPlistProcessorTask() and diagnostics() are examples of similar tests in that file.

@owenv
Copy link
Collaborator

owenv commented Mar 29, 2025

@swift-ci test

@owenv owenv closed this pull request by merging all changes into swiftlang:main in b1e79cd Mar 31, 2025
@owenv
Copy link
Collaborator

owenv commented Mar 31, 2025

@theSalted I think the bot used to update your fork overwrote the changes in this PR and It was auto-closed since it now matches main

@theSalted
Copy link
Author

@theSalted I think the bot used to update your fork overwrote the changes in this PR and It was auto-closed since it now matches main

Sorry about that! I am gonna disable it for this repo. I will start a new PR once I am done with the test-case.

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.

Emit warnings when Info.plist key values from different user-supplied sources conflict
2 participants