- 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 (MR) 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 or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-127659These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.9
- palantirnet/drupal-rector: 0.20.1
I've tried to apply the patch, but when I do a composer update I see:
sudo -u www-data composer update -v > command: Drupal\Composer\Plugin\Scaffold\Plugin->onCommand > pre-update-cmd: cweagans\Composer\Patches->checkPatches Gathering patches for root package. Removing package drupal/node_view_permissions so that it can be re-installed and re-patched. - Removing drupal/node_view_permissions (1.6.0) Deleting /var/www/testwebsite.com/web/modules/contrib/node_view_permissions - deleted Loading composer repositories with package information Updating dependencies Dependency resolution completed in 0.032 seconds Analyzed 1440 packages to resolve dependencies Analyzed 26122 rules to resolve dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Package operations: 1 install, 0 updates, 0 removals Installs: drupal/node_view_permissions:1.6.0 - Downloading drupal/node_view_permissions (1.6.0) > pre-package-install: cweagans\Composer\Patches->gatherPatches Gathering patches for root package. Gathering patches for dependencies. This might take a minute. Found 1 patches for drupal/node_view_permissions. - Installing drupal/node_view_permissions (1.6.0): Extracting archive > post-package-install: cweagans\Composer\Patches->postInstall - Applying patches for drupal/node_view_permissions https://www.drupal.org/files/issues/2024-03-24/node_view_permissions.8.x-1.6.rector.patch (11 compatibility 3433611) patch '-p1' --no-backup-if-mismatch -d '/var/www/testwebsite.com/web/modules/contrib/node_view_permissions' < '/tmp/66f836c3d15d6.patch' sh: 1: patch: not found patch '-p0' --no-backup-if-mismatch -d '/var/www/testwebsite.com/web/modules/contrib/node_view_permissions' < '/tmp/66f836c3d15d6.patch' sh: 1: patch: not found patch '-p2' --no-backup-if-mismatch -d '/var/www/testwebsite.com/web/modules/contrib/node_view_permissions' < '/tmp/66f836c3d15d6.patch' sh: 1: patch: not found patch '-p4' --no-backup-if-mismatch -d '/var/www/testwebsite.com/web/modules/contrib/node_view_permissions' < '/tmp/66f836c3d15d6.patch' sh: 1: patch: not found Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2024-03-24/node_view_permissions.8.x-1.6.rector.patch > post-package-install: Drupal\Composer\Plugin\Scaffold\Plugin->postPackage Generating autoload files 48 packages you are using are looking for funding. Use the `composer fund` command to find out more! > post-update-cmd: Drupal\Composer\Plugin\Scaffold\Plugin->postCmd Found 2 security vulnerability advisories affecting 2 packages. Run "composer audit" for a full list of advisories.