Skip to content

Commit

Permalink
Merge pull request #869 from tonistiigi/inline-uncompressed
Browse files Browse the repository at this point in the history
remotecache: allow uncompressed digest in inline export
  • Loading branch information
AkihiroSuda authored Mar 14, 2019
2 parents 0515c76 + d9cdaf8 commit c354108
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cache/remotecache/inline/inline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit c354108

Please sign in to comment.