mirror of
https://github.com/docker/compose.git
synced 2025-07-22 05:04:27 +02:00
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
|
// 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)
|
_, err = build.Build(ctx, driverInfo, opts, nil, nil, w)
|
||||||
|
errW := w.Wait()
|
||||||
|
if err == nil {
|
||||||
|
err = errW
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user