From 7dc5666f33c17e89d98e3bf870961dc9a28f4b4c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 1 Sep 2023 10:05:13 +0200 Subject: [PATCH] Avoid failing the require command if the audit step failed --- src/Composer/Command/RequireCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php index 90ca115b0..760bfdb38 100644 --- a/src/Composer/Command/RequireCommand.php +++ b/src/Composer/Command/RequireCommand.php @@ -488,7 +488,7 @@ EOT } $status = $install->run(); - if ($status !== 0) { + if ($status !== 0 && $status !== Installer::ERROR_AUDIT_FAILED) { if ($status === Installer::ERROR_DEPENDENCY_RESOLUTION_FAILED) { foreach ($this->normalizeRequirements($input->getArgument('packages')) as $req) { if (!isset($req['version'])) {