Skip to content

Package registry client #3864

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 3 commits into from
Nov 13, 2021
Merged

Package registry client #3864

merged 3 commits into from
Nov 13, 2021

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented Nov 12, 2021

Continue #3640 and
polish up the registry client.

@yim-lee
Copy link
Contributor Author

yim-lee commented Nov 12, 2021

@swift-ci please smoke test

@yim-lee
Copy link
Contributor Author

yim-lee commented Nov 12, 2021

@swift-ci please smoke test

@@ -77,43 +87,46 @@ public final class RegistryManager {
method: .get,
url: url,
headers: [
"Accept": "application/vnd.swift.registry.v1+json"
"Accept": self.acceptHeader(mediaType: .json),
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

completion: @escaping (Result<Manifest, Error>) -> Void
) {
guard case let (scope, name)? = package.identity.scopeAndName else {
let completion = self.makeAsync(completion, on: callbackQueue)
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@tomerd
Copy link
Contributor

tomerd commented Nov 12, 2021

ci failures should be solved with #3865

@tomerd
Copy link
Contributor

tomerd commented Nov 12, 2021

@swift-ci please smoke test

@yim-lee
Copy link
Contributor Author

yim-lee commented Nov 12, 2021

@swift-ci please smoke test

@yim-lee yim-lee merged commit 09021ce into swiftlang:main Nov 13, 2021
@yim-lee yim-lee deleted the registry-client branch November 13, 2021 00:45
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