Closed fuzzbomb closed 4 years ago
Hi,
currently inline patch definitions in extra.patches
of the composer.json are not supported in szeidler/composer-patches-cli
. But it shouldn't be hard to support this too.
But the patch doesn't get applied ever.
On which version of szeidler/composer-patches-cli
are you? 1.0.0? Here the patch-add
command should immediately trigger updating the patched package (to apply the patch).
This got resolved in the attached PR. Inline patches are supported now.
The
cweagans/composer-patches
project allows patches to de declared in a separate file, or anextra.patches
section of the rootcomposer.json
The README for this CLI tool implies that using a separate patches file is necessary. Is that correct?
My steps:
composer.json
file, in theextra.patches
section.szeidler/composer-patches-cli
composer patch-list
works. It lists all the projects I already use patches for.composer patch-add
didn't work...[Exception] Patch file was not defined in your composer.json.
composer patch-enable
. Now acomposer.patches.json
file has been created.composer patch-add
seems to work now. The patch is mentioned incomposer.patches.json
extra.patches
section of mycomposer.json
composer.patches.json
get applied.So it seems that I can only use place for declaring patches. I think that may be a limitation of
cweagans/composer-patches
, which is fine.But does
composer-patches-cli
only work with a separate patches file?