I recently added hosting_platform_composer_git, which allows us to deploy platforms from Composer project Git repositories. Unfortunately, these platforms don't delete properly.

I believe it may be that one hosting_platform_composer's post-delete hook may be deleting it first.

Comments

ergonlogic created an issue. See original summary.

colan’s picture

Here's the error I'm getting:

Calling hook drush_platform_composer_post_provision_delete [debug]
Skipping unset context property: composer_project_path [notice]
Skipping unset context property: composer_project_package [notice]
Skipping unset context property: composer_project_version [notice]
Drush command terminated abnormally due to an unrecoverable error.
Error: Uncaught Error: Class 'Drupal\Core\StringTranslation\TranslatableMarkup' not found in /var/aegir/platforms/platform-machine-name/web/core/includes/bootstrap.inc:333
Stack trace:
#0 /path/to/hosting_deploy/modules/platform_composer/drush/Provision/ComposerCreateProject.php(57): t('Deleting Compos...')
#1 /path/to/hosting_deploy/modules/platform_composer/drush/platform_composer.drush.inc(30): Provision_ComposerCreateProject->postProvisionDelete()
#2 phar:///usr/local/bin/drush/includes/command.inc(422): drush_platform_composer_post_provision_delete()
#3 phar:///usr/local/bin/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#4 phar:///usr/local/bin/drush/includes/command.inc(199): drush_command()
#5 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#6 phar:///usr/local/bin/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#7 phar:///usr/local/bin/drush/includes/startup.inc(462): drus in /var/aegir/platforms/platform-machine-name/web/core/includes/bootstrap.inc, line 333

  • colan committed aaffab5 on 7.x-3.x
    Issue #2959528 by colan: Use dt() instead of t() when running in the...
colan’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.