Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Problem/Motivation
The VariationCache module is marked as 'Unsupported' as of 8.x-1.5. However, the module cannot be uninstalled as it is listed in the info.yml file as a dependency.
Steps to reproduce
drush pmu variationcache
Proposed resolution
Allow uninstallation of variationcache
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#10 | 3421610-10-do-not-test.patch | 3.22 KB | recrit |
#8 | 3421610-8-do-not-test.patch | 2.91 KB | chewi3 |
#7 | 3421610-7-do-not-test.patch | 2.83 KB | chewi3 |
#6 | 3421610-6-do-not-test.patch | 1.09 KB | nils.destoop |
#5 | 3421610-5.patch | 1.01 KB | nils.destoop |
Comments
Comment #2
idebr CreditAttribution: idebr at iO commentedAttached patch removes variationcache from the group.info.yml so the module can be uninstalled.
Comment #3
idebr CreditAttribution: idebr at iO commentedComment #4
idebr CreditAttribution: idebr at iO commentedAdditional patch that applies against 8.x-1.6 with release packaging information.
Comment #5
nils.destoop CreditAttribution: nils.destoop as a volunteer and at iO commentedAn updated patch as the references to variationcache needs to be replaced with the core version.
Comment #6
nils.destoop CreditAttribution: nils.destoop as a volunteer and at iO commentedAnd a version with packing info
Comment #7
chewi3 CreditAttribution: chewi3 commentedThe latest patch still causes type errors. I extended the latest patch to also update references in ChainGroupPermissionCalculator.
Comment #8
chewi3 CreditAttribution: chewi3 commentedNow also with added packaging info
Comment #9
recrit CreditAttribution: recrit at Phase2 commentedthe attached patch also removes the dependency from composer.json. This patch is for 8.x-1.6 with the package info.
Comment #10
recrit CreditAttribution: recrit at Phase2 commentedignore 3421610-9-do-not-test.patch, i left a comman in the composer.json.
the attached patch also removes the dependency from composer.json. This patch is for 8.x-1.6 with the package info.
Comment #11
recrit CreditAttribution: recrit at Phase2 commentedit appears that composer just ignores any patched changes to the composer so you may still need to add the following to your project's composer.json in order to remove the "drupal/variationcache" dependency: