diff --git a/pkg/dib/build.go b/pkg/dib/build.go index 161426c7..96158e50 100644 --- a/pkg/dib/build.go +++ b/pkg/dib/build.go @@ -83,13 +83,13 @@ func (p *Builder) rebuildGraph( buildArgs map[string]string, ) { p.Graph. - Filter( - func(node *dag.Node) bool { - return node.Image.NeedsRebuild || node.Image.NeedsTests - }). WalkParallel( func(node *dag.Node) { img := node.Image + if !(img.NeedsRebuild || img.NeedsTests) { + img.RebuildFailed = false + return + } buildReport := report.BuildReport{Image: *img} // Return if any parent build failed