Skip to content

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