Skip to content

[5.5][Collections] Dedupe package versions in GitHub metadata (#3504) #3506

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 1 commit into from
May 19, 2021

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented May 19, 2021

#3504 for 5.5

)

Motivation:
Package metadata returned by GitHub API may contain duplicate entries for the same tag. e.g., https://github.com/vapor/postgres-nio releases 1.5.0 and 1.5.1. This causes `getPackageMetadata` API to crash.

Modification:
Dedupe versions/tags when we construct dictionary from GitHub package versions array.
@yim-lee
Copy link
Contributor Author

yim-lee commented May 19, 2021

@swift-ci please test

@tomerd tomerd added the 5.5 label May 19, 2021
@yim-lee yim-lee merged commit 6ede5b9 into swiftlang:release/5.5 May 19, 2021
@yim-lee yim-lee deleted the gh-dup-tags-5.5 branch May 19, 2021 20:44
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