Skip to content

Refactor registry checksum TOFU logic #6190

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
Feb 27, 2023

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented Feb 26, 2023

Motivation:
Checksum TOFU logic is scattered in RegistryClient, making it difficult to reason about and maintain.

Modifications:
Refactor checksum TOFU logic into PackageVersionChecksumTOFU.

Motivation:
Checksum TOFU logic is scattered in `RegistryClient`, making it difficult to reason about and maintain.

Modifications:
Refactor checksum TOFU logic into `PackageVersionChecksumTOFU`.
@yim-lee
Copy link
Contributor Author

yim-lee commented Feb 26, 2023

@swift-ci please smoke test

self.registryClient = registryClient
}

func check(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: validate probable a better fit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will rename it as part of #6184

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

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

nice cleanup

@yim-lee yim-lee merged commit ae14833 into swiftlang:main Feb 27, 2023
@yim-lee yim-lee deleted the refactor-checksum-tofu branch February 27, 2023 22:25
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.

3 participants