New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer cache interferring with patching #66
Comments
Tried to reproduce this today to see if changing the key for the patch would help. But now I cannot reproduce this issue. Not sure what changed but will post more info if I learn something. |
Noting that I'm only seeing this issue with patches that add new files. |
Yes, I added some patches to composer.json after previously requiring the module via composer. I had to run |
I don't think this is an issue in |
When patching a dependency/module, then later you update the patch URL (to point to a newer patch) and run "composer update", it will try to apply the new patch to the cached previously patched download rather than applying it to a fresh download.
For example:
then do "composer install". This works. Now edit the composer.json to be:
then do "composer update". This will fail to apply the patch. From what I can tell, it is trying to apply the updated patch to the previously patched version that is in the composer cache, rather than re-downloading and applying from scratch.
If I do a "composer clear-cache" and THEN do a "composer update", then it works.
Edited: Using v1.5.0 of composer-patches
The text was updated successfully, but these errors were encountered: