From 5018b0fd530fe550f07c8ca9f5086450941adfab Mon Sep 17 00:00:00 2001 From: Joao Silva Date: Tue, 20 Sep 2022 17:36:49 +0200 Subject: [PATCH] DQA-4585: Make pipeline fail if package is not found. --- src/TaskRunner/Commands/ToolCommands.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TaskRunner/Commands/ToolCommands.php b/src/TaskRunner/Commands/ToolCommands.php index 019331f65..3c32f2fd3 100644 --- a/src/TaskRunner/Commands/ToolCommands.php +++ b/src/TaskRunner/Commands/ToolCommands.php @@ -1535,7 +1535,8 @@ public function toolkitInstallDependencies(array $options = [ if (strpos($info, '[installed]') !== false) { $data[$package] = 'already installed'; } elseif (strpos($info, $package) === false) { - $data[$package] = 'not found, skip install'; + $data[$package] = 'not found'; + $return = 1; } else { $install[] = $package; }