Skip to content

Commit 70cd42f

Browse files
authored
Merge pull request moby#51493 from vvoland/c8d-build-noforceunpack
c8d/builder-next: Don't force unpack
2 parents e7d7771 + b4f9bd1 commit 70cd42f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

daemon/internal/builder-next/exporter/wrapper.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ func (e *imageExporterMobyWrapper) Resolve(ctx context.Context, id int, exporter
4848
return nil, err
4949
}
5050
exporterAttrs[string(exptypes.OptKeyName)] = strings.Join(reposAndTags, ",")
51-
exporterAttrs[string(exptypes.OptKeyUnpack)] = "true"
51+
52+
if _, has := exporterAttrs[string(exptypes.OptKeyUnpack)]; !has {
53+
exporterAttrs[string(exptypes.OptKeyUnpack)] = "true"
54+
}
5255
if _, has := exporterAttrs[string(exptypes.OptKeyDanglingPrefix)]; !has {
5356
exporterAttrs[string(exptypes.OptKeyDanglingPrefix)] = "moby-dangling"
5457
}

0 commit comments

Comments
 (0)