Skip to content

Add digests.Options and set one up inside c/image/copy#530

Merged
mtrmac merged 2 commits intocontainers:mainfrom
mtrmac:digests-value
Jan 12, 2026
Merged

Add digests.Options and set one up inside c/image/copy#530
mtrmac merged 2 commits intocontainers:mainfrom
mtrmac:digests-value

Conversation

@mtrmac
Copy link
Copy Markdown
Contributor

@mtrmac mtrmac commented Dec 5, 2025

This is a subset of #512 , just to have a shared setup in which to work on c/image/copy.

@lsm5 PTAL.

I have left out the actual PutBlob change from #512, I want that to actually be implemented in all transports at once — so #512 might be more convenient to experiment on.

@github-actions github-actions Bot added the image Related to "image" package label Dec 5, 2025
Comment thread image/copy/copy.go
// only to allow gradually building the feature set.
// After c/image/copy consistently implements it, provide a public digest options API of some kind.
optionsCopy := *options
optionsCopy.digestOptions = digests.CanonicalDefault()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For experiments, this can be modified to refer to storage/pkg/supported-digests/algorithm.go or be hard-coded to digests.MustUse(digests.SHA512).

podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Dec 5, 2025
@podmanbot
Copy link
Copy Markdown

✅ A new PR has been created in buildah to vendor these changes: containers/buildah#6572

@TomSweeneyRedHat
Copy link
Copy Markdown
Member

LGTM
@Luap99 @nalind PTAL

The goal is to allow building the digest-choice-dependent machinery
from the bottom up without committing to an API while we don't understand
the problem space; for now, we don't expose any way for users to
actually make a choice.

This code is never called at this point, so this should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
for now, purely to let us internally work on implementing digest
choice / conversions; there is no way for a caller to set it.

Should not change behavior, the field has no users.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Jan 12, 2026
@mtrmac mtrmac merged commit b7043a7 into containers:main Jan 12, 2026
24 checks passed
@mtrmac mtrmac deleted the digests-value branch January 12, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image Related to "image" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants