Skip to content

Failure no longer shows description #666

@neclimdul

Description

@neclimdul

Verification

  • I have updated Composer to the most recent stable release (composer self-update)
  • I have updated Composer Patches to the most recent stable release (composer update cweagans/composer-patches)
  • I am using one of the supported PHP versions (8.0+)
  • I have searched existing issues and discussions for my idea.

Is your feature request related to a problem?

In the 2.0 release the description isn't in the output making it more difficult to debug patch failures.

For example, previously patch failures would look something like:

  - Applying patches for drupal/core
    https://git.drupalcode.org/project/drupal/-/commit/dne.patch (really cool patch from next release)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://git.drupalcode.org/project/drupal/-/commit/dne.patch

Its quite clear this was the "really cool patch"

But now they look like:

  - Patching drupal/core
      - Found cached patch at /mnt/ddev-global-cache/composer/patches/c0388b619228608ba69d8303e07789fb3762d41d58ba8aa26d53529ad498022a.patch

In Patches.php line 288:
                                                                                                                            
  No available patcher was able to apply patch https://git.drupalcode.org/project/drupal/-/commit/dne.patch to drupal/core  
                                                                                                                            

I often use this to reference the merge/issue or other relevant context so when you see the failure its obvious what failed, what it was used for, where to go to engage with fixing it, etc.

Now, unless its a local patch with a very descriptive file name, its much more difficult to diagnose requiring digging through the patches list.

Describe your proposed solution(s)

Add the description back some where in the patching or failure output so its clear what is being applied and failed.

Describe alternatives

Don't know what an alternative would be. This would just be restoring some useful context to developers.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, options, or other additions.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions