Patch on drupal/core fails with D10.2.4

Created on 11 March 2024, 10 months ago
Updated 12 March 2024, 10 months ago

The installation fails with D10.2.4 (PHP 8.3.2) when executing composer install

  - Applying patches for drupal/core
    web/modules/contrib/refreshless/core.patch (RefreshLess)

In RemoteFilesystem.php line 108:
                                                                                                                                                                      
  [TypeError]                                                                                                                                                         
  Composer\Util\RemoteFilesystem::copy(): Argument #1 ($originUrl) must be of type string, null given, called in /var/www/vendor/cweagans/composer-patches/src/Patch  
  es.php on line 388  
Exception trace:
  at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:108
 Composer\Util\RemoteFilesystem->copy() at /var/www/vendor/cweagans/composer-patches/src/Patches.php:388
 cweagans\Composer\Patches->getAndApplyPatch() at /var/www/vendor/cweagans/composer-patches/src/Patches.php:324
 cweagans\Composer\Patches->postInstall() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:206
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:148
 Composer\EventDispatcher\EventDispatcher->dispatchPackageEvent() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:396
 Composer\Installer\InstallationManager::Composer\Installer\{closure}() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:411
 Composer\Installer\InstallationManager->executeBatch() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:319
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:218
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:804
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:629
 Composer\Installer->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Installer.php:290
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/InstallCommand.php:147
 Composer\Command\InstallCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:382
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:145
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:93
 require() at /usr/local/bin/composer:29
🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands sebastian hagens Breda, Netherlands

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sebastian hagens
  • Status changed to Postponed 10 months ago
  • 🇳🇱Netherlands sebastian hagens Breda, Netherlands

    Has the core.patch file been removed in the 2.x repo? Which is a good thing ;-)

  • Status changed to Closed: works as designed 10 months ago
  • 🇳🇱Netherlands sebastian hagens Breda, Netherlands

    I just noticed the patches (and instructions) are moved to the submodules. Nice work and I will close this issue now.

Production build 0.71.5 2024