From b35ec44d06454b61ff2ebdb9704d60fc36021dfd Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 8 May 2020 18:01:34 +0200 Subject: [PATCH] Update build.go --- command/build.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/build.go b/command/build.go index d4ae94a19..60514a1e6 100644 --- a/command/build.go +++ b/command/build.go @@ -139,9 +139,9 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cfg *BuildArgs) int Except: cfg.Except, }) - if ret := writeDiags(c.Ui, nil, diags); ret != 0 { - return ret - } + // here, something could have gone wrong but we still want to run valid + // builds. + ret = writeDiags(c.Ui, nil, diags) if cfg.Debug { c.Ui.Say("Debug mode enabled. Builds will not be parallelized.")