From 5e9449c3c9f4a49a632c6e867d48683df6374c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 16 Oct 2024 00:13:28 +0200 Subject: [PATCH] Consistently use a string type for expectedLayerDiffIDFlag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Might be a fix for https://github.com/containers/image/issues/2602 . Signed-off-by: Miloslav Trmač --- storage/storage_dest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage_dest.go b/storage/storage_dest.go index c71616cac..615d6c30e 100644 --- a/storage/storage_dest.go +++ b/storage/storage_dest.go @@ -930,7 +930,7 @@ func (s *storageImageDestination) createNewLayer(index int, layerDigest digest.D flags := make(map[string]interface{}) if untrustedUncompressedDigest != "" { - flags[expectedLayerDiffIDFlag] = untrustedUncompressedDigest + flags[expectedLayerDiffIDFlag] = untrustedUncompressedDigest.String() logrus.Debugf("Setting uncompressed digest to %q for layer %q", untrustedUncompressedDigest, newLayerID) }