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.

Revisions

  1. theodorosploumis revised this gist Mar 3, 2023. 1 changed file with 62 additions and 28 deletions.
    90 changes: 62 additions & 28 deletions composer_patches_lenient.md
    Original file line number Diff line number Diff line change
    @@ -12,39 +12,73 @@ composer require mglaman/composer-drupal-lenient

    ```
    # composer.json
    "extra": {
    "patches": {
    "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/mimemail": {
    "Automated Drupal 10 compatibility fixes, https://dgo.to/3288663": "https://www.drupal.org/files/issues/2023-01-24/3288663-16.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"
    },
    "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-lenient": {
    "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/toolbar_menu_clean"
    "drupal/term_reference_change",
    "drupal/toolbar_menu_clean",
    "drupal/views_filters_populate",
    "drupal/webform_migrate"
    ]
    },
    }
    },
    "enable-patching": true,
    "composer-exit-on-patch-failure": "false",
    },
    ```
  2. theodorosploumis revised this gist Feb 8, 2023. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion composer_patches_lenient.md
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,6 @@ composer require mglaman/composer-drupal-lenient
    "allowed-list": [
    "drupal/geocoder_autocomplete",
    "drupal/htmlmail",
    "drupal/linkit",
    "drupal/mimemail",
    "drupal/pathologic",
    "drupal/readonlymode",
  3. theodorosploumis created this gist Feb 8, 2023.
    51 changes: 51 additions & 0 deletions composer_patches_lenient.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    # 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/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/mimemail": {
    "Automated Drupal 10 compatibility fixes, https://dgo.to/3288663": "https://www.drupal.org/files/issues/2023-01-24/3288663-16.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"
    },
    "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-lenient": {
    "allowed-list": [
    "drupal/geocoder_autocomplete",
    "drupal/htmlmail",
    "drupal/linkit",
    "drupal/mimemail",
    "drupal/pathologic",
    "drupal/readonlymode",
    "drupal/simplenews",
    "drupal/toolbar_menu_clean"
    ]
    },
    }