Problem/Motivation

Found 1 patches for drupal/ds.
  - Installing drupal/ds (3.9.0): Reading /home/joachim/.cache/composer/files/drupal/ds/8bd6f0c8591e53cdfb4d86190ef02850712a080e.zip from cache
Loading from cache
 Extracting archiveExecuting command (CWD): unzip -qq  'docroot/modules/contrib/ds/793ecde10acfd712b542324846cac188.zip' -d '/srv/Vardoc/vendor/composer/1fc38f1e'
    REASON: drupal/varbase_media 7.26.0 requires drupal/ds ~3.0 -> satisfiable by drupal/ds[3.x-dev, 3.0.0-alpha1, 3.0.0-alpha2, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3, 3.0.0-beta4, 3.0.0-rc1, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0].

  - Applying patches for drupal/ds
    https://www.drupal.org/files/issues/2018-10-26/ds-ds_url-2975313-7.patch (Issue #2975313 Using token with external url to 'onclick attribute on layout wrapper' throws InvalidArgumentException)
Downloading https://www.drupal.org/files/issues/2018-10-26/ds-ds_url-2975313-7.patch
patch '-p1' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
Executing command (CWD): patch '-p1' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
checking file ds.module
Hunk #2 FAILED at 564.
1 out of 2 hunks FAILED

patch '-p0' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
Executing command (CWD): patch '-p0' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ds.module b/ds.module
|index 4d70ede3..6ee3861c 100644
|--- a/ds.module
|+++ b/ds.module
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch '-p2' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
Executing command (CWD): patch '-p2' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ds.module b/ds.module
|index 4d70ede3..6ee3861c 100644
|--- a/ds.module
|+++ b/ds.module
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch '-p4' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
Executing command (CWD): patch '-p4' --dry-run --no-backup-if-mismatch -f -d 'docroot/modules/contrib/ds' < '/tmp/5f63dfeb129c6.patch'
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ds.module b/ds.module
|index 4d70ede3..6ee3861c 100644
|--- a/ds.module
|+++ b/ds.module
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-10-26/ds-ds_url-2975313-7.patch

                                                                                                          
  [Exception]                                                                                             
  Cannot apply patch Issue #2975313 Using token with external url to 'onclick attribute on layout wrappe  
  r' throws InvalidArgumentException (https://www.drupal.org/files/issues/2018-10-26/ds-ds_url-2975313-7  
  .patch)!                                                                                                
                                                                                                          

Exception trace:
 () at /srv/Vardoc/vendor/cweagans/composer-patches/src/Patches.php:321
 cweagans\Composer\Patches->postInstall() at n/a:n/a
 call_user_func() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:164
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:116
 Composer\EventDispatcher\EventDispatcher->dispatchPackageEvent() at phar:///usr/bin/composer/src/Composer/Installer.php:636
 Composer\Installer->doInstall() at phar:///usr/bin/composer/src/Composer/Installer.php:232
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/UpdateCommand.php:163
 Composer\Command\UpdateCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:281
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:113
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:61
 require() at /usr/bin/composer:24

Steps to reproduce

Try to update 4.0 to 4.01 via composer

Here is the right one: #2883928: Use absolute or external URL for link wrappers

Proposed resolution

change the issue to the correct one to make composer able to find the file, again

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Joachim Namyslo created an issue. See original summary.

joachim namyslo’s picture

Title: Padch for display Suite could not be applied because the issue was closed » Patch for display Suite could not be applied because the issue was closed
rajab natshah’s picture

rajab natshah’s picture

Status: Fixed » Closed (fixed)