Skip to content

Instantly share code, notes, and snippets.

@theodorosploumis
Last active March 3, 2023 14:21
Show Gist options
  • Save theodorosploumis/605f0b9dae641266735553aaff8a0712 to your computer and use it in GitHub Desktop.
Save theodorosploumis/605f0b9dae641266735553aaff8a0712 to your computer and use it in GitHub Desktop.
List of Drupal lenient 10.x patches for common used modules.

Enable Drupal 10.x lenient repositories

Based on the plugin at https://github.com/mglaman/composer-drupal-lenient. See also https://www.drupal.org/docs/develop/using-composer/using-drupals-lenient-composer-endpoint.

Install plugin (also, add to allowed)

composer require mglaman/composer-drupal-lenient 

Add patches and "drupal-lenient.allowed-list" on composer.json

# composer.json
"extra": {
        "patches": {
            "drupal/core": {
                "Admin toolbar and contextual links should always be rendered in the admin language (if set), https://dgo.to/2313309": "https://www.drupal.org/files/issues/2023-03-02/2313309-159.patch",
                "Call to a member function getTranslation() on null in ContentEntityBase, https://dgo.to/3108528": "https://www.drupal.org/files/issues/2022-11-24/3108528-34.patch"
            },
            "drupal/geocoder_autocomplete": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3287726": "https://www.drupal.org/files/issues/2022-06-15/geocoder_autocomplete.2.0.x-dev.rector.patch"
            },
            "drupal/htmlmail": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3287920": "https://www.drupal.org/files/issues/2022-07-23/htmlmail.3.x-dev.rector.patch"
            },
            "drupal/migrate_manifest": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3288625": "https://www.drupal.org/files/issues/2022-06-16/migrate_manifest.3.x-dev.rector.patch"
            },
            "drupal/migrate_devel": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3310624": "https://www.drupal.org/files/issues/2022-09-20/3310624-D10-readiness-migrate_devel.patch"
            },
            "drupal/mimemail": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3288663": "https://www.drupal.org/files/issues/2023-01-24/3288663-16.patch"
            },
            "drupal/owlcarousel": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3297798": "https://www.drupal.org/files/issues/2023-02-15/owl_carousel-drupal_10_compatible-3297798-6.patch"
            },
            "drupal/pathologic": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/2389033": "https://www.drupal.org/files/issues/2023-01-18/2389033-21.patch"
            },
            "drupal/readonlymode": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3289253": "https://www.drupal.org/files/issues/2022-06-16/readonlymode.2.0.x-dev.rector.patch"
            },
            "drupal/simplenews": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3289673": "https://www.drupal.org/files/issues/2023-01-26/simplenews.d10-readiness.3289673-21.patch",
                "Migration from D7 7.x-1.1 fails with column not found access, https://dgo.to/3316103": "https://www.drupal.org/files/issues/2022-11-30/simplenews-column-not-found-access-3316103-2_0.patch"
            },
            "drupal/term_reference_change": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3289993": "https://www.drupal.org/files/issues/2022-06-16/term_reference_change.1.x-dev.rector.patch"
            },
            "drupal/toolbar_menu_clean": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3290111": "https://www.drupal.org/files/issues/2022-06-16/toolbar_menu_clean.1.x-dev.rector.patch"
            },
            "drupal/views_filters_populate": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3290488": "https://www.drupal.org/files/issues/2022-06-16/views_filters_populate.2.0.0.rector.patch"
            },
            "drupal/webform_migrate": {
                "Automated Drupal 10 compatibility fixes, https://dgo.to/3329526": "https://www.drupal.org/files/issues/2023-01-09/webform_migrate-3329526-4.patch"
            }
        },
        "drupal-lenient": {
            "allowed-list": [
                "drupal/geocoder_autocomplete",
                "drupal/htmlmail",
                "drupal/media_migration",
                "drupal/migrate_devel",
                "drupal/migrate_manifest",
                "drupal/mimemail",
                "drupal/owlcarousel",
                "drupal/pathologic",
                "drupal/readonlymode",
                "drupal/simplenews",
                "drupal/term_reference_change",
                "drupal/toolbar_menu_clean",
                "drupal/views_filters_populate",
                "drupal/webform_migrate"
            ]
        },
        "enable-patching": true,
        "composer-exit-on-patch-failure": "false",
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment