@@ -338,7 +338,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
338338 logrus .Debugf ("Executing bake with args: %v" , args )
339339
340340 if s .dryRun {
341- return s .dryRunBake (ctx , cfg ), nil
341+ return s .dryRunBake (cfg ), nil
342342 }
343343 cmd := exec .CommandContext (ctx , buildx .Path , args ... )
344344
@@ -424,7 +424,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
424424 return nil , fmt .Errorf ("build result not found in Bake metadata for service %s" , name )
425425 }
426426 results [image ] = built .Digest
427- s .events ( ctx , progress .BuiltEvent ("Image " + image ))
427+ s .events . On ( progress .BuiltEvent ("Image " + image ))
428428 }
429429 return results , nil
430430}
@@ -530,26 +530,26 @@ func dockerFilePath(ctxName string, dockerfile string) string {
530530 return dockerfile
531531}
532532
533- func (s composeService ) dryRunBake (ctx context. Context , cfg bakeConfig ) map [string ]string {
533+ func (s composeService ) dryRunBake (cfg bakeConfig ) map [string ]string {
534534 bakeResponse := map [string ]string {}
535535 for name , target := range cfg .Targets {
536536 dryRunUUID := fmt .Sprintf ("dryRun-%x" , sha1 .Sum ([]byte (name )))
537- s .displayDryRunBuildEvent (ctx , name , dryRunUUID , target .Tags [0 ])
537+ s .displayDryRunBuildEvent (name , dryRunUUID , target .Tags [0 ])
538538 bakeResponse [name ] = dryRunUUID
539539 }
540540 for name := range bakeResponse {
541- s .events ( ctx , progress .BuiltEvent (name ))
541+ s .events . On ( progress .BuiltEvent (name ))
542542 }
543543 return bakeResponse
544544}
545545
546- func (s composeService ) displayDryRunBuildEvent (ctx context. Context , name , dryRunUUID , tag string ) {
547- s .events ( ctx , progress.Event {
546+ func (s composeService ) displayDryRunBuildEvent (name , dryRunUUID , tag string ) {
547+ s .events . On ( progress.Event {
548548 ID : name + " ==>" ,
549549 Status : progress .Done ,
550550 Text : fmt .Sprintf ("==> writing image %s" , dryRunUUID ),
551551 })
552- s .events ( ctx , progress.Event {
552+ s .events . On ( progress.Event {
553553 ID : name + " ==> ==>" ,
554554 Status : progress .Done ,
555555 Text : fmt .Sprintf (`naming to %s` , tag ),
0 commit comments