moby/image/tarexport
Paweł Gronowski 2c45df2ab4 image/save: Fix missing layers in manifest
The new OCI-compatible archive export relies on the Descriptors returned
by the layer (`distribution.Describable` interface implementation).

The issue with that is that the `roLayer` and the `referencedCacheLayer`
types don't implement this interface. Implementing that interface for
them based on their `descriptor` doesn't work though, because that
descriptor is empty.

To workaround this issue, just create a new descriptor if the one
provided by the layer is empty.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-01-12 17:10:23 +01:00
..
load.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
load_test.go reject null manifests 2021-02-02 09:24:53 -08:00
save.go image/save: Fix missing layers in manifest 2024-01-12 17:10:23 +01:00
tarexport.go replace some strings with OCI consts 2023-10-17 16:34:52 +02:00