From 40ea8dd1113bbed57a0e276319be5d3dc86cb1c4 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 10 Dec 2024 17:05:18 +0100 Subject: [PATCH] chore(composer): Also run with "--no-audit" to save some time Avoid running the security audit. This is the responsibility of the ORT advisor. Signed-off-by: Sebastian Schuberth --- .../composer/src/main/kotlin/Composer.kt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugins/package-managers/composer/src/main/kotlin/Composer.kt b/plugins/package-managers/composer/src/main/kotlin/Composer.kt index c833742f18834..41382f25ed5f0 100644 --- a/plugins/package-managers/composer/src/main/kotlin/Composer.kt +++ b/plugins/package-managers/composer/src/main/kotlin/Composer.kt @@ -249,11 +249,15 @@ class Composer( if (hasLockfile) return lockfile val composerVersion = Semver(getVersion(workingDir)) - val args = listOfNotNull( - "update", - "--ignore-platform-reqs", - "--no-install".takeIf { composerVersion.major >= 2 } - ) + val args = buildList { + add("update") + add("--ignore-platform-reqs") + + if (composerVersion.major >= 2) { + add("--no-install") + add("--no-audit") + } + } run(workingDir, *args.toTypedArray()).requireSuccess()