Skip to content
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

fix: add digest to fetched status output of manifest index create #1579

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cmd/oras/internal/display/status/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,11 @@ func (mich *TextManifestIndexCreateHandler) OnFetching(source string) error {
}

// OnFetched implements ManifestIndexCreateHandler.
func (mich *TextManifestIndexCreateHandler) OnFetched(source string, _ ocispec.Descriptor) error {
return mich.printer.Println(IndexPromptFetched, source)
func (mich *TextManifestIndexCreateHandler) OnFetched(ref string, desc ocispec.Descriptor) error {
if contentutil.IsDigest(ref) {
return mich.printer.Println(IndexPromptFetched, ref)
}
return mich.printer.Println(IndexPromptFetched, desc.Digest, ref)
}

// OnIndexPacked implements ManifestIndexCreateHandler.
Expand Down
Loading