cweagans / composer-patches

Simple patches plugin for Composer
https://www.cweagans.net/project/composer-patches
BSD 3-Clause "New" or "Revised" License
1.52k stars 239 forks source link

Could not apply patch! Skipping. The error was: Cannot apply patch #226

Closed vouza closed 1 year ago

vouza commented 6 years ago

For some reason I cannot use this plugin. I thought its a user rights thing so I gave 777 to the whole folder. Still it does not work.

The patch is ok. I just was able to include it by using phpstorm.

Thanks for help

$ composer update
    1/1:    http://packagist.org/p/provider-latest$40d29078e846e543e38d2771c7c700e88dfe049917735d752cc3fa12fa9f051d.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/paragraphs (dev-1.x bedd55b): Cloning bedd55bbac from cache
  - Applying patches for drupal/paragraphs
    https://www.drupal.org/files/issues/embed_paragraph_content-2848878-43.patch (Add startup configuration for PHP server)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/embed_paragraph_content-2848878-43.patch
    https://www.drupal.org/files/issues/2868155-16.patch (Issue #2868155: new hooks for editing paragraphs subforms)

> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
Writing lock file
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess
nafsinvk commented 9 months ago

Sometimes the patch might be missing in Linux Use the below command to install patch and try again sudo yum install patch