From fbb0f9b424a761ceaf9f17936aa2183701d41b32 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 18 Apr 2024 18:12:39 -0700 Subject: [PATCH] build: avoid default load with --print Signed-off-by: Tonis Tiigi --- build/opt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/opt.go b/build/opt.go index b27e4c66..5d05e25a 100644 --- a/build/opt.go +++ b/build/opt.go @@ -162,7 +162,7 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op case 1: // valid case 0: - if !noDefaultLoad() { + if !noDefaultLoad() && opt.PrintFunc == nil { if nodeDriver.IsMobyDriver() { // backwards compat for docker driver only: // this ensures the build results in a docker image.