I'm using cweagans/composer-patches to apply patches to my project (Magento 2). To minimise changes, I'd like composer to only apply the patch and not update any dependencies to the latest versions.
Patching is triggered at the end of a composer update
command, and the new extra.patches section in the composer file lists patches which should be applied to packages. As far as I understand, the composer update
will try to update all dependencies.
I think I can reduce the behaviour by doing a composer update [vendor]/[package]
where [vendor]/[package]
is the package I want to patch.
Is there any way of running the composer update
command without triggering an update.