Is there a simple patch plugin for composer?
Add composer.lock to the repo. Simple patches plugin for Composer. Applies a patch from a local or remote file to any package required with composer. If you need PHP 5.3, 5.4, or 5.5 support, you should probably use a 1.x release.
How to force composer to reinstall a library?
Install, Uninstall and Update Modules Themes etc with Composer: https://modulesunraveled.com/drupal-8-composer-and-configuration-management/installing-and-uninstalling-modules-composer As user @aaracrr pointed out in a comment on another answer probably the best answer is to re-require the package with the same version constraint.
Can a composer patch affect an underlying dependency?
Because patching occurs after Composer calculates dependencies and installs packages, changes to an underlying dependency’s composer.json file introduced in a patch will have no effect on installed packages. If you need to modify a dependency’s composer.json or its underlying dependencies, you cannot use this plugin.
Where can I find TYPO3 patches in composer?
The patch file itself can not be attracted via a link, since composer-patches unfortunately can’t handle neither the TYPO3 provided patch files in Base64 nor archives. The extracted file from the patch file archive (3307a5d.diff.zip) of TYPO3 is therefore in a patches folder within the project.
How does Composer install work on different machines?
They work on some machines and not others, with the same composer.json/composer.lock. When going to the module directories and doing a “git apply” with the downloaded patch files, they apply without error. Stranger then. When doing “composer install” a second time, the patches apply flawlessly. Shortened example:
When to use a patches key in composer.json?
The unit/acceptance tests do not run on anything earlier than PHP 7.1, so while pull requests will be accepted for those versions, support is on a best-effort basis. Instead of a patches key in your root composer.json, use a patches-file key.