- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → these changes make this module compatible with Drupal 11! 🎉
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug info
Bot run #11-121090This patch was created using these packages:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.7
- palantirnet/drupal-rector: 0.20.1
- 🇬🇧United Kingdom ice70
Anyone any ideas why this patch will not apply?
composer install -vv
Removing drupal/custom_body_class (2.0.1)
Loading drupal/custom_body_class (2.0.1) from cache- Applying patches for drupal/custom_body_class
https://www.drupal.org/files/issues/2024-03-17/custom_body_class.2.0.1.r... → ( https://www.drupal.org/project/custom_body_class/issues/3429707 📌 Automated Drupal 11 compatibility fixes for custom_body_class Needs review Drupal 11 compatibility)
patch "-p0" --no-backup-if-mismatch -d "web/modules/contrib/custom_body_class" < "C:\Users\ice70\AppData\Local\Temp/66e434e6c5063.patch"
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/composer.json b/composer.json
|index 14a2b64..4012c07 100644
|--- a/composer.json
|+++ b/composer.json
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/custom_body_class.info.yml b/custom_body_class.info.yml
|index a07f520..fbf37ec 100644
|--- a/custom_body_class.info.yml
|+++ b/custom_body_class.info.yml
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignoredCould not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2024-03-17/custom_body_class.2.0.1.r... →
- 🇬🇧United Kingdom ice70
This patch will apply using git, just not via composer / cweagans
- 🇬🇧United Kingdom ice70
fixed it by using the --prefer-source option:
composer require drupal/custom_body_class --prefer-source