szeidler / composer-patches-cli

Adds a CLI wrapper for cweagans/composer-patches
MIT License
28 stars 8 forks source link

Do patches have to be declared in a separate file? #21

Closed fuzzbomb closed 4 years ago

fuzzbomb commented 4 years ago

The cweagans/composer-patches project allows patches to de declared in a separate file, or an extra.patches section of the root composer.json

The README for this CLI tool implies that using a separate patches file is necessary. Is that correct?

My steps:

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?

szeidler commented 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).

szeidler commented 4 years ago

This got resolved in the attached PR. Inline patches are supported now.