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

Command icon 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

alejico created an issue. See original summary.

marcosdr made their first commit to this issue’s fork.

marcosdr’s picture

Updated the patch versions to those that are compatible with Drupal 10.

ugintl’s picture

You would need to update it for D 10.3

rfbrandsma made their first commit to this issue’s fork.

rfbrandsma’s picture

Updated the patch versions to be compatible with Drupal 10.3

ugintl’s picture

Thank 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?

rfbrandsma’s picture

Hi 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.

"layoutcomponents": {
  "type": "vcs",
   "url": "https://git.drupalcode.org/issue/layoutcomponents-3447638.git"
},
anna d’s picture

Note:
It is required to install fork or allow composer failure to install the fix:
"composer-exit-on-patch-failure": false,

anna d’s picture

Priority: Normal » Major
Status: Active » Needs review
anna d’s picture