buildah/pkg/blobcache
Nalin Dahyabhai 289a250a2f blobcache: avoid an unnecessary NewImage()
Avoid calling NewImage() on the source reference when the ImageSource
that we already have returns nil from its LayerInfosForCopy() method.

For our container-as-image references, that causes a re-extraction of
uncached blobs, recomputing their digests, rebuilding the config blobs
and manifests.

The image library's copy.Image() function then asks the source reference
that we're wrapping for blobs that we listed in the rebuilt manifest,
and if any of those values differ, we fail to read them.

This would have only affected builds that specified a blob cache.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2020-07-31 10:05:32 -04:00
..
blobcache.go blobcache: avoid an unnecessary NewImage() 2020-07-31 10:05:32 -04:00
blobcache_test.go Update for manifest-lists API changes in containers/image 2019-10-28 15:15:34 +00:00