Problem/Motivation
I tried to install the module with composer and I getting the following error:
https://www.drupal.org/files/issues/2020-03-20/layout_builder_3080606-re... (Reorder sections)
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2020-03-20/layout_builder_3080606-re...
We are using core 10.2.6. Also happens in the last 10.1.x release.
Steps to reproduce
1- Require 3.0.x version of the module in a D10 site.
Proposed resolution
This core patch could be out of the repo and it should be explained how to add it to the root composer in the installation notes.
This way the community can create update patches.
I know there must be another solution... But I dont know how.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork layoutcomponents-3447638
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
marcosdr commentedUpdated the patch versions to those that are compatible with Drupal 10.
Comment #5
ugintl commentedYou would need to update it for D 10.3
Comment #8
rfbrandsma commentedUpdated the patch versions to be compatible with Drupal 10.3
Comment #9
ugintl commentedThank you updating the patch. I installed the module, but this time it did not try to apply the patch. Did you remove it? Should I apply the patch manually?
Comment #10
rfbrandsma commentedHi ugintl.
When I require the module with the specific version from my MR it does install the patches:
composer require "drupal/layoutcomponents:dev-3447638-10.3-compatibility"You have to add this fork as a repository in you composer.json to make it work.
Comment #11
anna d commentedNote:
It is required to install fork or allow composer failure to install the fix:
"composer-exit-on-patch-failure": false,
Comment #12
anna d commentedComment #13
anna d commentedDuplicated issue https://www.drupal.org/project/layoutcomponents/issues/3191648