Problem/Motivation
hi
Varbase has included the patch #37 of the issue Add a Normalizer and Denormalizer to support Layout Builder.
When i was on varbase-9.0* , for some reasons i can't remember in detail bu that are related to default_content module that was not exporting as i expected, i applied the patch #53 of the issue mentioned above while ignoring the the patch #37 in my composer file as recommended in Varbase Doc and everything was working fine.
Yesterday, because of drupal core warning about security (10.2.3) i manually run a lando composer update to move to D10.2.5 . But when the process reach the patching step, after applying the patch #53 to default_content module, the patch-ignore section in which i specify to ignore varbase included patch #37 is not considered anymore which make composer try to still apply the patch #37
At the end composer could not finish properly the update process.
Steps to reproduce
in composer.json :
"patches": { "drupal/default_content": { "1 - Add a Normalizer and Denormalizer to support Layout Builder - https://www.drupal.org/project/default_content/issues/3160146#comment-14814050": "https://www.drupal.org/files/issues/2022-12-06/default_content-3160146-53.patch", "2 - Do not reimport existing entities": "https://www.drupal.org/files/issues/2022-07-29/default_content-fix-uuid-duplicate-entry-2698425.patch", "3 - Update inline block usage on import - https://www.drupal.org/project/default_content/issues/3359137#comment-15042582": "https://www.drupal.org/files/issues/2023-05-09/default_content-3359137-3.patch", "4 - Null references in dependencies": "https://www.drupal.org/files/issues/2021-04-19/default-content-check-null-reference-3209506-3.patch", "5 - Drush comand to export all items from entity with defined criteria ": "https://www.drupal.org/files/issues/2023-10-06/2786479-46.patch" }, "drupal/easy_install": { "PHP warning on": "https://www.drupal.org/files/issues/2020-07-25/Solution.patch" } }, "patches-ignore": { "drupal/varbase_core": { "drupal/default_content": { "Issue #3160146: Add Layout Builder Normalizer and Denormalize": "https://www.drupal.org/files/issues/2021-04-07/3160146-37.patch" } } }
and then composer update --lock
**************
i also tried
"patches": { ..................................... } "patches-ignore": { "drupal/default_content": { "Issue #3160146: Add Layout Builder Normalizer and Denormalize": "https://www.drupal.org/files/issues/2021-04-07/3160146-37.patch" } }
the result is in attached image
| Comment | File | Size | Author |
|---|---|---|---|
| varbase-patch-ignore from 2024-04-05 09-03-11.png | 268.81 KB | delacosta456 |
Comments
Comment #2
rajab natshah#3437217: Switch to a local patching system using vardot/varbase-patches and cweagans/composer-patches ~2 within Varbase
Varbase Patches
List of needed patches for Varbase used packages with Composer Patches.
you can change to
Comment #3
delacosta456 commentedhi
thanks for the suggestion .
It worked.
Comment #4
delacosta456 commentedComment #5
rajab natshahThanks, for reporting and following!