@@ -27,6 +27,7 @@ import (
27
27
"github.com/depot/cli/pkg/debuglog"
28
28
"github.com/depot/cli/pkg/helpers"
29
29
"github.com/depot/cli/pkg/load"
30
+ "github.com/depot/cli/pkg/progresshelper"
30
31
"github.com/depot/cli/pkg/registry"
31
32
"github.com/depot/cli/pkg/sbom"
32
33
"github.com/distribution/reference"
@@ -320,7 +321,8 @@ func buildTargets(ctx context.Context, dockerCli command.Cli, nodes []builder.No
320
321
}
321
322
322
323
// NOTE: the err is returned at the end of this function after the final prints.
323
- err = load .DepotFastLoad (ctx , dockerCli .Client (), resp , pullOpts , printer )
324
+ reportingPrinter := progresshelper .NewReportingWriter (printer , depotOpts .buildID , depotOpts .token )
325
+ err = load .DepotFastLoad (ctx , dockerCli .Client (), resp , pullOpts , reportingPrinter )
324
326
if err != nil && ! errors .Is (err , context .Canceled ) {
325
327
// For now, we will fallback by rebuilding with load.
326
328
if exportLoad {
@@ -334,7 +336,7 @@ func buildTargets(ctx context.Context, dockerCli command.Cli, nodes []builder.No
334
336
}
335
337
336
338
if retryable {
337
- progress .Write (printer , "[load] fast load failed; retrying" , func () error { return err })
339
+ progress .Write (reportingPrinter , "[load] fast load failed; retrying" , func () error { return err })
338
340
opts = load .WithDockerLoad (fallbackOpts )
339
341
_ , err = depotbuildxbuild .DepotBuildWithResultHandler (ctx , buildxNodes , opts , dockerClient , dockerConfigDir , printer , nil , nil , allowNoOutput , depotOpts .build )
340
342
}
0 commit comments