mirror of
https://github.com/moby/buildkit.git
synced 2026-08-10 17:14:08 +00:00
remotecache: allow uncompressed digest in inline export
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
7
cache/remotecache/inline/inline.go
vendored
7
cache/remotecache/inline/inline.go
vendored
@@ -41,6 +41,13 @@ func (ce *exporter) ExportForLayers(layers []digest.Digest) ([]byte, error) {
|
||||
for _, k := range layers {
|
||||
if v, ok := descs[k]; ok {
|
||||
descs2[k] = v
|
||||
continue
|
||||
}
|
||||
// fallback for uncompressed digests
|
||||
for _, v := range descs {
|
||||
if uc := v.Descriptor.Annotations["containerd.io/uncompressed"]; uc == string(k) {
|
||||
descs2[v.Descriptor.Digest] = v
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user