Skip to content

Commit b77648d

Browse files
tonistiigijsternberg
authored andcommitted
build: avoid default load with --print
Signed-off-by: Tonis Tiigi <[email protected]> (cherry picked from commit fbb0f9b)
1 parent 171fcbe commit b77648d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/opt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op
162162
case 1:
163163
// valid
164164
case 0:
165-
if !noDefaultLoad() {
165+
if !noDefaultLoad() && opt.PrintFunc == nil {
166166
if nodeDriver.IsMobyDriver() {
167167
// backwards compat for docker driver only:
168168
// this ensures the build results in a docker image.

0 commit comments

Comments
 (0)