From d5925d42a24619f8fa7fb19cac3323091a246ea1 Mon Sep 17 00:00:00 2001 From: Jonathan Poole Date: Fri, 13 Dec 2024 14:23:29 +0000 Subject: [PATCH] Don't queue a target up for test if the target failed to build (#3315) --- src/plz/plz.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plz/plz.go b/src/plz/plz.go index c164ce9c2..dd8517973 100644 --- a/src/plz/plz.go +++ b/src/plz/plz.go @@ -57,6 +57,11 @@ func Run(targets, preTargets []core.BuildLabel, state *core.BuildState, config * return } + if !task.Target.State().IsBuilt() { + state.TaskDone() + return + } + if state.NeedTests && task.Target.IsTest() && state.IsOriginalTarget(task.Target) { state.QueueTestTarget(task.Target) }