Unable to install using Composer

sibil
Forums
Installation via composer is giving multiple errors, many failures to apply patches. Followed the documentation from here: https://opigno.atlassian.net/wiki/spaces/OUM20/pages/361922562/Installa… Errors during installation: Applying patches for drupal/video https://www.drupal.org/files/issues/2018-07-18/2986682-2.patch (Add source and destination module for migrate plugin) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-07-18/2986682-2.patch Installing drupal/calendar (dev-1.x 73e2979): Cloning 73e2979 Applying patches for drupal/calendar https://www.drupal.org/files/issues/2756445-month-names-not-showing-10… (2756445) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2756445-month-names-not-showing-10… https://www.drupal.org/files/issues/2018-04-06/calendar-date_range-2699… (2699477) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-04-06/calendar-date_range-2699… https://www.drupal.org/files/issues/2018-05-09/2604546-33.patch (2604546) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-05-09/2604546-33.patch https://www.drupal.org/files/issues/fix_menu_tabs_in-2630234-15.patch (2630234) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/fix_menu_tabs_in-2630234-15.patch https://www.drupal.org/files/issues/tab_navigation_not_working_after_us… (2867991) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/tab_navigation_not_working_after_us… https://www.drupal.org/files/issues/week-week-day-display-issues-290159… (2901594) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/week-week-day-display-issues-290159… https://www.drupal.org/files/issues/2018-04-23/2955351-5-base-filter.pa… (2955351) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-04-23/2955351-5-base-filter.pa…
admin

Hi sibil,

Hi sibil,

Maybe drupal.org was down when you tried it?

Have you confirmed that your server can access drupal.org? Maybe its beeing blocked?

Try wget https://www.drupal.org/files/issues/2018-07-18/2986682-2.patch to check.

 

Best regards

sibil

wget works.

wget works. Appreciate your support. Server is able to download the patch, but applying the patch fails. Composer is still giving the same error. composer create-project opigno/opigno-composer example-folder Please note that all the 16 patches are failing. cat composer.log | grep "Could not apply patch" | wc -l 16 Composer version 1.9.0 CentOS Linux release 7.6.1810 (Core) PHP 7.2.21 git version 1.8.3.1
sibil

After copying the patches to

After copying the patches to the respective directories, I'm able to apply the patches individually. cp 2986682-2.patch ./example-folder/web/modules/contrib/video/ cd ./example-folder/web/modules/contrib/video/ git apply 2986682-2.patch
sibil

patch was not installed.

patch was not installed. "yum install patch" fixed the issue. Running composer install on verbose mode would give meaningful error messages. Thanks! Thanks!