From 70b5e7a42943c85bbd1d2825b2ffe94eec89020f Mon Sep 17 00:00:00 2001 From: Kay Strobach Date: Fri, 13 Dec 2019 08:24:13 +0100 Subject: [PATCH] [FEATURE] Ensure composer always installs the packages This patch ignores some platform requirements to ensure that the packages can be installed. To achieve that all plugins and all the php version and extension requirements are ignored. Otherwise a simple missing `php-gd` extension might break the license finder --- lib/license_finder/package_managers/composer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/license_finder/package_managers/composer.rb b/lib/license_finder/package_managers/composer.rb index edf87f91c..6dcf5fc27 100644 --- a/lib/license_finder/package_managers/composer.rb +++ b/lib/license_finder/package_managers/composer.rb @@ -29,7 +29,7 @@ def self.package_management_command end def prepare_command - 'composer install' + 'composer install --no-plugins --ignore-platform-reqs --no-interaction' end def package_path