Problem/Motivation
When installing the module the patch https://www.drupal.org/files/issues/entity_embed_links-2511404-31.patch fails to apply on entity_embed 8.x-1.0-beta2:
- Installing drupal/entity_embed_linkit (1.0.0-beta1): Loading from cache
- Applying patches for drupal/entity_embed_linkit
https://www.drupal.org/files/issues/entity_embed_links-2511404-31.patch (2511404 - Add link field to entity embed dialog)
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/entity_embed_links-2511404-31.patch
That seems to be because the patch is set for "drupal/entity_embed_linkit" instead of "drupal/entity_embed", though I have not been able to test if it applies when changed.
Proposed resolution
I can think of two options:
1. Fix the patch dependency in the composer.json.
2. Remove the patch dependency completely from the code, and add it in manual installation instructions so that entity_embed_links code will not need to be changed when entity_embed is updated.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_embed_patch-2903596-1.patch | 440 bytes | RumyanaRuseva |
Comments
Comment #2
RumyanaRuseva commentedHere is a patch for fixing the dependency.
Unfortunately I am not able to test if it works. It seems that entity_embed/composer.json is cached on module install and even though it's changed by the attached patch, it still executes the original code.
Comment #3
RumyanaRuseva commentedComment #5
eric.chenchao commentedHi RumyanaRuseva, thanks.
Comment #7
amaisano commentedStill does not work. Is this meant to apply to the dev version of drupal/entity_embed??
Comment #8
amaisano commentedThe patch partially applies, but fails.