Skip to content

[Collections] Dedupe package versions in GitHub metadata #3504

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 2 commits into from
May 19, 2021

Conversation

yim-lee
Copy link
Contributor

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

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.

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 18, 2021

@swift-ci please smoke test

@@ -794,7 +794,7 @@ final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable
return false
}
}
})
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this change intended ^^

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it was a swiftformat change but I've reverted it in this PR.

@yim-lee
Copy link
Contributor Author

yim-lee commented May 19, 2021

@swift-ci please smoke test

@yim-lee yim-lee merged commit 46073d3 into swiftlang:main May 19, 2021
@yim-lee yim-lee deleted the gh-dup-tags branch May 19, 2021 03:43
yim-lee added a commit to yim-lee/swift-package-manager that referenced this pull request May 19, 2021
)

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 added a commit that referenced this pull request May 19, 2021
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.
bitjammer pushed a commit to bitjammer/swift-package-manager that referenced this pull request Jul 23, 2021
)

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.
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