Skip to content

Swift package identity is case-insensitive #414

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
merged 5 commits into from
Sep 11, 2022

Conversation

stevapple
Copy link
Contributor

@stevapple stevapple commented Sep 10, 2022

This PR fixes the bug of some dependency (eg. Yams) not being recognized due to case-sensitive identity comparison.

Copy link
Contributor

@adam-fowler adam-fowler left a comment

Choose a reason for hiding this comment

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

Your test passes without the case insensitive code changes. Do you want to make it actual test your changes. I'd be happy for you to make PackageDependenciesProvider.getDependencyGraph public so you can access it from tests.

@stevapple stevapple force-pushed the identity-case-insensitive branch from 821bf79 to 962f011 Compare September 11, 2022 14:19
@stevapple
Copy link
Contributor Author

stevapple commented Sep 11, 2022

@adam-fowler I added some assertions — and that’s what we can test now without a dedicated test suite for UI testing. Making getDependencyGraph public seems unnecessary for the case, because asserting on the UI (with getChildren()) is enough.

Copy link
Contributor

@adam-fowler adam-fowler left a comment

Choose a reason for hiding this comment

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

looks good

@adam-fowler adam-fowler merged commit 15c6ec6 into swiftlang:main Sep 11, 2022
@stevapple stevapple deleted the identity-case-insensitive branch September 13, 2022 12:36
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