Can not apply patch on sub-module

Issue #32 resolved
Roman Gudev created an issue

Patch.make content:

; Only last variable value saves in Domain Conf
; see https://www.drupal.org/node/2833745#comment-11815113
projects[domain_conf][patch][] = "https://www.drupal.org/files/issues/domain-domain_conf-fix-2833745-1.patch"

Output: Cannot apply patch https://www.drupal.org/files/issues/domain-domain_conf-fix-2833745-1.patch to /var/www/drupal_base/web/sites/sday_lom_rf-mul/modules/_lomdorogo-lib/domain/domain_conf.

But I've successfully appled this patch via tortoisegit.

Comments (11)

  1. Sergej Burbach

    mybe you should try

    #!
    
    projects[domain][patch][] = "https://www.drupal.org/files/issues/domain-domain_conf-fix-2833745-1.patch"
    
  2. Dave Reid repo owner

    @axuet Is correct, because the patch is generated to be applied to the domain module root itself (since domain_conf is a sub-module of it), the patch should be listed to be applied to the domain module, not domain_conf.

  3. Bouchra NA

    Hello , i have the same issue :

    ; Media and WYSIWYG combo cause content to dissapear for multi-value fields
    ; @see https://www.drupal.org/node/2271117
    projects[media_wysiwyg][patch][] = "https://www.drupal.org/files/issues/media-multi-value-field-upload-image-content-dissapears-2271117-22.patch"
    

    any idea ?

  4. Sergej Burbach

    Same here:

    projects[media][patch][] = "https://www.drupal.org/files/issues/media-multi-value-field-upload-image-content-dissapears-2271117-22.patch"
    
  5. Bouchra NA

    The same error:

    Cannot apply patch https://www.drupal.org/files/issues/media-multi-value-field-upload-image-content-dissapears-2271117-22.patch to /var/www/html/www/sites/all/modules/contrib/media.                            [error]
    
  6. Sergej Burbach

    Bad patch. The patches should be generated relative to the main module and not to the submodule. This patch is generated relative to the submodule.

  7. Log in to comment