Skip to content

Fix fetching latest version for some pod components#588

Merged
qtomlinson merged 2 commits intoclearlydefined:masterfrom
qtomlinson:qt/fix_pod_latest_version
Aug 13, 2024
Merged

Fix fetching latest version for some pod components#588
qtomlinson merged 2 commits intoclearlydefined:masterfrom
qtomlinson:qt/fix_pod_latest_version

Conversation

@qtomlinson
Copy link
Copy Markdown
Collaborator

Versions retrieved from the pod registry are sorted lexically. An example can be found at https://trunk.cocoapods.org/api/v1/pods/xcbeautify. Lexically, "0.17.0" < "0.9.1", so the latest version is not always the last item in the versions list. Change to sort by timestamp to retrieve the latest version.

Task: #587

Versions retrieved from the pod registry are sorted lexically. An example can be found at https://trunk.cocoapods.org/api/v1/pods/xcbeautify. Lexically, "0.17.0" < "0.9.1", so the latest version is not always the last item in the versions list. Change to sort by timestamp to retrieve the latest version.
@qtomlinson qtomlinson marked this pull request as ready for review July 24, 2024 16:50
@qtomlinson qtomlinson requested a review from elrayle July 24, 2024 16:50
Copy link
Copy Markdown
Collaborator

@elrayle elrayle left a comment

Choose a reason for hiding this comment

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

This is great. Very nice bug fix.

@qtomlinson qtomlinson merged commit dc8d5a2 into clearlydefined:master Aug 13, 2024
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