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

Add fallback to sort group by full path #835

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

igor-makarov
Copy link
Contributor

This PR resolves an issue where having several items that have the same basename and extname would be sorted in an unstable manner.

Example:

PBXVariantGroup
|
+- en.lproj/InfoPlist.strings
+- he.lproj/InfoPlist.strings
+- it.lproj/InfoPlist.strings
+- zh-Hant.lproj/InfoPlist.strings

Because essentially all of these files have the same basename and extname, the sort becomes non-deterministic.

Adding a fallback by full path, eg.g en.lproj/InfoPlist.strings resolves this.

@dnkoutso
Copy link
Contributor

amazing!

@dnkoutso
Copy link
Contributor

Still would love a test here perhaps, merging.

@dnkoutso dnkoutso merged commit 2700820 into CocoaPods:master Jul 14, 2021
@igor-makarov igor-makarov deleted the sort-fallback branch July 14, 2021 13:11
igor-makarov added a commit to igor-makarov/Xcodeproj that referenced this pull request Jul 14, 2021
igor-makarov added a commit to igor-makarov/Xcodeproj that referenced this pull request Jul 14, 2021
igor-makarov added a commit to igor-makarov/Xcodeproj that referenced this pull request Jul 14, 2021
dnkoutso added a commit that referenced this pull request Jul 14, 2021
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