From ddaec1a36726bc881ff641a9bc7e673835b3ef3a Mon Sep 17 00:00:00 2001 From: Chris Crone Date: Thu, 10 Dec 2020 10:09:05 +0100 Subject: [PATCH] compose.build: Wait for progress writer after build Signed-off-by: Chris Crone --- local/compose/build.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/local/compose/build.go b/local/compose/build.go index 01955d740..2c9cd7c48 100644 --- a/local/compose/build.go +++ b/local/compose/build.go @@ -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 }