Closed (fixed)
Project:
Varbase - The Ultimate Drupal CMS Starter Kit (Bootstrap Ready)
Version:
8.x-4.28
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2018 at 17:24 UTC
Updated:
17 Jan 2019 at 04:59 UTC
Jump to comment: Most recent
Comments
Comment #2
mohammed j. razemHi mellowtothemax,
This issue has been annoying us for quite some time, as Varbase and other Drupal distros rely on patches to work well.
The patches package we're using is called
"cweagans/composer-patches". This package handles the patching mechanism.If we set
"composer-exit-on-patch-failure"tofalse, this could break the site's installation and some functionalities since some patches are crucial for the functioning of Varbase.Therefore, we have thought of a better way to handle patching (it's now implemented in Varbase 8.6.3 and above), therefore, you'll need to update your Varbase version to make use of this patching mechanism.
The flow goes as this:
Patching Scenarios:
You run
composer update, new versions of modules or core are downloaded. If patches for those modules are included, there are 3 possible scenarios:composer.jsonThe New
"vardot/composer-patches"and How It Will Handle Those Scenarios:Based on these scenarios, we have forked the
"cweagans/composer-patches"package, and added an Event Dispatcher on patch failure. The Event Dispatcher will dispatch an Event that will prompt you to perform an action depending on the scenarios above. Thus:composer.jsonfailed-patches.txt. You can review it and try to handle those patches yourself.How To Use
"vardot/composer-patches":If you're using Varbase 8.6.3 or greater, just run
composer updateand it will work.If you're using Varbase 8.6.2 or older, you can update to the most recent version of Varbase 8.6.x and make use of this functionality. Or run the following commands:
composer config repositories.composer-patches vcs https://github.com/vardot/composer-patchescomposer updateto get the new package.composer updateagain to update your packages and start applying the new patching mechanism.We hope this will make updating and handling patches as easy as possible for developers.