c8d/builder: Set empty diffID for rolayer

diffID is the digest of a tar archive containing changes to the parent
layer - rolayer doesn't have any changes to the parent.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski 2023-08-25 15:01:27 +02:00
parent 6ebfa57364
commit 8c7e19c5ff
No known key found for this signature in database
GPG key ID: B85EFCFE26DEF92A

View file

@ -201,7 +201,7 @@ func newROLayerForImage(ctx context.Context, imgDesc *ocispec.Descriptor, i *Ima
key: key,
c: i.client,
snapshotter: i.snapshotter,
diffID: digest.Digest(parent),
diffID: "", // Image RO layer doesn't have a diff.
contentStoreDigest: "",
}, nil
}