Skip to content

ContainerRegistry: Make digest(of:Data) an ImageReference.Digest constructor#147

Merged
euanh merged 1 commit intoapple:mainfrom
euanh:digest-refactor
Jul 8, 2025
Merged

ContainerRegistry: Make digest(of:Data) an ImageReference.Digest constructor#147
euanh merged 1 commit intoapple:mainfrom
euanh:digest-refactor

Conversation

@euanh
Copy link
Copy Markdown
Collaborator

@euanh euanh commented Jul 8, 2025

Motivation

The digest(of:) function calculates an image digest from a Data object. Previously the digest was a string and the function stood alone, but after the introduction of the ImageReference.Digest type it is logical for it to be an alternative constructor.

Modifications

digest(of:) is now ImageReference.Digest(of:)

Result

Refactoring. No functional change.

Test Plan

All existing tests continue to pass.

@euanh euanh merged commit 935912e into apple:main Jul 8, 2025
23 checks passed
@euanh euanh deleted the digest-refactor branch July 8, 2025 16:19
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.

1 participant