Skip to content

cannot apply patches to new Drupal 10 installation #650

Open
@laurencefass

Description

@laurencefass

Package containing the bug

I’m not sure

Describe the bug

Im following the instructions for applying patches, and they are not working with Drupal 10.

added these to composer.json

        "patches": {
            "drupal/subrequests": {
                "Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch"
            },
            "drupal/decoupled_router": {
                "Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch"
            }
        },

On the command line:

bash-5.1# composer require cweagans/composer-patches
Using version ^1.7 for cweagans/composer-patches
./composer.json has been updated
Running composer update cweagans/composer-patches
Gathering patches for root package.
Removing package drupal/decoupled_router so that it can be re-installed and re-patched.
  - Removing drupal/decoupled_router (2.0.4)
Removing package drupal/subrequests so that it can be re-installed and re-patched.
  - Removing drupal/subrequests (3.0.10)
Deleting /var/www/html/web/modules/contrib/decoupled_router - deleted
Deleting /var/www/html/web/modules/contrib/subrequests - deleted
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/subrequests (3.0.10): Extracting archive
  - Installing drupal/decoupled_router (2.0.4): Extracting archive
  - Applying patches for drupal/subrequests
    https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch (Get same results on different request)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch

  - Applying patches for drupal/decoupled_router
    https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch (Unable to resolve path on node in other language than default)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch

Generating autoload files
53 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
bash-5.1# 

Please let me know if can provide any further information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions