mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +08:00
build: avoid default load with --print
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit fbb0f9b424a761ceaf9f17936aa2183701d41b32)
This commit is contained in:
parent
171fcbeb69
commit
b77648d5f8
@ -162,7 +162,7 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op
|
|||||||
case 1:
|
case 1:
|
||||||
// valid
|
// valid
|
||||||
case 0:
|
case 0:
|
||||||
if !noDefaultLoad() {
|
if !noDefaultLoad() && opt.PrintFunc == nil {
|
||||||
if nodeDriver.IsMobyDriver() {
|
if nodeDriver.IsMobyDriver() {
|
||||||
// backwards compat for docker driver only:
|
// backwards compat for docker driver only:
|
||||||
// this ensures the build results in a docker image.
|
// this ensures the build results in a docker image.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user