mirror of https://github.com/docker/compose.git
compose.build: Wait for progress writer after build
Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
parent
6e76aadfd6
commit
ddaec1a367
|
@ -130,6 +130,10 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opts
|
|||
|
||||
// We rely on buildx "docker" builder integrated in docker engine, so don't need a DockerAPI here
|
||||
_, err = build.Build(ctx, driverInfo, opts, nil, nil, w)
|
||||
errW := w.Wait()
|
||||
if err == nil {
|
||||
err = errW
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue