From 573afbb22b5a3a01a0b572fa81def9a16c3cbc8d Mon Sep 17 00:00:00 2001 From: fourierrr Date: Tue, 15 Oct 2024 15:25:37 +0800 Subject: [PATCH] fix error MediaType when get dup manifest from db Signed-off-by: fourierrr --- cmd/convertor/builder/overlaybd_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/convertor/builder/overlaybd_builder.go b/cmd/convertor/builder/overlaybd_builder.go index f98674e0..e66c8160 100644 --- a/cmd/convertor/builder/overlaybd_builder.go +++ b/cmd/convertor/builder/overlaybd_builder.go @@ -282,7 +282,7 @@ func (e *overlaybdBuilderEngine) CheckForConvertedManifest(ctx context.Context) entry := e.db.GetManifestEntryForRepo(ctx, e.host, e.repository, e.mediaTypeManifest(), e.inputDesc.Digest) if entry != nil && entry.ConvertedDigest != "" { convertedDesc := specs.Descriptor{ - MediaType: e.mediaTypeImageLayer(), + MediaType: e.mediaTypeManifest(), Digest: entry.ConvertedDigest, Size: entry.DataSize, }