From d3e24812e4b926e9a24bc90a3d9ce959089c8890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 29 Nov 2021 15:16:58 +0100 Subject: [PATCH] Read signatures from UnparsedImage instead of ImageSource directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should not make a difference right now, because nothing else uses the UnparsedImage, but it allows caching _in principle_ and it makes the code more similar to the copyOneImage version, which we'll benefit from next. Signed-off-by: Miloslav Trmač --- copy/copy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy/copy.go b/copy/copy.go index ba5334e594..c7500e96fd 100644 --- a/copy/copy.go +++ b/copy/copy.go @@ -411,7 +411,7 @@ func (c *copier) copyMultipleImages(ctx context.Context, policyContext *signatur sigs = []internalsig.Signature{} } else { c.Printf("Getting image list signatures\n") - s, err := c.rawSource.GetSignaturesWithFormat(ctx, nil) + s, err := unparsedToplevel.UntrustedSignatures(ctx) if err != nil { return nil, fmt.Errorf("reading signatures: %w", err) }