Merge pull request #2421 from tonistiigi/print-default-load

build: avoid default load with --print
This commit is contained in:
Tõnis Tiigi 2024-04-24 16:38:21 -07:00 committed by GitHub
commit a727de7d5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.