Another kind of applying patch failing silenty #578
Labels
enhancement
New features, options, or other additions.
help-wanted
We want to add this to the project. Contributions welcome!
Verification
composer self-update
)composer update cweagans/composer-patches
)Is your feature request related to a problem?
I just had another case of a patch not being applied without any error message or information, aka silently. First I tried to apply the patch manually with
git apply
which failed as well, butpatch -p1 , [patch-file]
worked. After reading different issues why composer-patches uses git apply and not the patch command I decided to debug intocomposer prp
if I can find the cause.That was an easy one as it turned out being a typo in the package name inside
composer.patches.json
. So no bug at all, just a stupid (but time-consuming user error).Describe your proposed solution(s)
As this might happen to other people as well, please add some useful output as warning or notice if a patch cannot be applied for different reasons, i. e.:
No. 2 and 3 might already be implemented, I diidn't check the code for them. But no. 1 is the use case of this feature request.
If that might be too annoying consider putting these outputs behind a verbose flag.
Describe alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: