-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
[2.0.0-beta1] No available patcher was able to apply patch ( for drupal/core ) #521
Comments
I'm seeing:
Edit: It seems the culprit is the If I change the depth to Full output of relevant Composer command with the -vvv flag added
|
Thank you so much for the detailed bug report! This is super helpful!! Will look into this. |
If I change the patch file to include the I usually create my patches by deleting the But by doing I was curious how this could have worked all this time in https://github.com/cweagans/composer-patches/blob/1.7.3/src/Patches.php#L396-L407 I won't ask you to reintroduce that logic 😅 Congratulations on the |
I think we could probably adjust the defaults to account for that workflow. Using the core sub tree isn't uncommon. |
Just hit this with 2.0.0-beta2, not sure if I understand the implications of what was said above. |
In Patches.php line 288: No available patcher was able to apply patch https://www.drupal.org/files/issues/ctools-option_to_expose-2667652-3.patch to drupal/ctools Abandoning 2.0.0-beta2, going back to 1.7.3 |
@joejoseph00 Please open an issue and provide all the details requested. |
Verification
composer self-update
)composer update cweagans/composer-patches
)What were you trying to do (and why)?
Trying to upgrade from
1.7.3
to2.0.0-beta1
to test it out.System
MacOS Ventura 13.4.1
git version 2.41.0
Composer version 2.5.8 2023-06-09 17:13:21
PHP 8.1.20 (cli) (built: Jun 17 2023 06:00:49) (NTS)
I also verified it on another system:
macOS Monterey 12.3
git version 2.30.1 (Apple Git-130)
Composer version 2.5.8 2023-06-09 17:13:21
PHP 8.1.16 (cli) (built: Feb 16 2023 07:22:21) (NTS)
What happened? What did you expect to happen?
I got an error. I expected it to run fine. If I change back to
1.7.3
it runs fine.I think this might be related to #423. Things seem to be solved there by running
brew install gpatch
.However, I already had
gpatch
installed and as far as I understand, we no longer usepatch
butgit
.Here is the error message I get:
Contents of
composer.json
Contents of
patches.lock.json
Full output of
composer patches-doctor
Full output of relevant Composer command with the
-vvv
flag addedContents of the patch
patches/drupal/core/file_system_serialize_dependencies.patch
The text was updated successfully, but these errors were encountered: