Drupal-console: Drupal console crash on import with skip-uuid

Created on 29 May 2018  路  7Comments  路  Source: hechoendrupal/drupal-console

Drupal console crash on import with skip-uuid

  • ./vendor/bin/drupal config:import --directory="./sync" --skip-uuid --uri=dev
    when you use drupal console to import configuration it's crash if you use --skip-uuid.
    Because of the class " \Drupal\Console\Override\StorageComparer " that does'nt exist in recent builds.

up to 1.6.0 you use this class " \Drupal\Console\Override\StorageComparer "
from 1.7.0 it's another system.

Details to include:

  • Drupal version 8.5.3
  • Console version 1.8

Solution

I think it's just an update on this file src\Command\Config\ImportCommand.php L100 to 102
Or it's can be adding getSubscribedEvents on src\Override\ConfigSubscriber.php
I'm not really sure. I've don't test one or another solution.

Most helpful comment

--skip-uuid should not be used any more. Instead you can configure it in your console/config.yml:

application:
...
  overrides:
    config:
      skip-validate-site-uuid: true

See https://weknowinc.com/blog/how-install-drupal-8-existing-configuration

All 7 comments

Same thing

--skip-uuid should not be used any more. Instead you can configure it in your console/config.yml:

application:
...
  overrides:
    config:
      skip-validate-site-uuid: true

See https://weknowinc.com/blog/how-install-drupal-8-existing-configuration

If you prefer to run a command to set this config rather than editing the file use
drupal settings:set overrides.config.skip-validate-site-uuid true

And what about updating the docs?

Thanks @marcelovani for updating the documentation

--skip-uuid should not be used any more. Instead you can configure it in your console/config.yml:

I am not sure if this really fixes the issue. If --skip-uuid should not be used anymore, in my understanding it should be removed or somehow be deprecated.

... use drupal settings:set overrides.config.skip-validate-site-uuid true

Thanks for updating the docs, very nice. However, using this feature is tricky, because there's almost no documentation on how Console is generally configured. Please point out if I am missing some chapter in the Console Book.

Was this page helpful?
0 / 5 - 0 ratings