Dependency injection issues after enabling predeploy hooks

Created on 21 December 2023, about 1 year ago
Updated 26 December 2023, 12 months ago

Since enabling this module/drush plugin, I've been getting errors in our build pipeline related to dependency injection. One example (on a pull request that updates the twig_tweak module but does not contain any predeploy hook implementation):

[error] Error: Class "Drupal\twig_tweak\TwigExtension" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /var/lib/tugboat/web/core/lib/Drupal/Component/DependencyInjection/Container.php) #0 /var/lib/tugboat/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'twig_tweak.twig...')

In our pipeline, "drush deploy" is preceded by "composer install --optimize-autoloader --no-interaction --prefer-dist --no-dev" and a "drush cr" for good measure. This started immediately after installing drush_pre_deploy. I cannot reproduce the issue locally.

Has anybody run into this before when using pre_deploy or have any suggestions about what to try?

πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scottatdrake

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

Comments & Activities

Production build 0.71.5 2024