I can't seem to follow documented procedures for creating a subprofile (little of this anyway)

Steps I followed:

  1. composer create-project acquia/lightning-project lightning-vanilla
  2. cd lightning-vanilla
  3. ./vendor/bin/drupal list

This results in command not found... I tried to require drupal/console using composer but that failed since it needs to downgrade symfony/debug and others... So I manually added

drupal/console:^1.9

to the composer.json file in the required section...

  1. composer update
  2. ./vendor/bin/drupal list | grep lightning

However, running these commands shows up nothing... How do I create a subprofile?

Comments

dmlb2000 created an issue. See original summary.

dishabhadra’s picture

StatusFileSize
new65.33 KB

Confirming that this issue exists.

I tried to install Drupal Console in my repo by composer require drupal/console --dev --prefer-dist --optimize-autoloader.
But the composer is throwing errors w.r.t version locking of symfony packages.(In my case the package is symfony/dom-crawler)

More details in attached screenshot.

Since Drupal Console seems to be the correct way of creating sub-profile, This seems to be the blocker?

phenaproxima’s picture

Status: Active » Closed (works as designed)
Issue tags: -composer create-project install

So, an annoying quirk about Drupal Console is that it requires Drupal to be installed in order for module/profile-exposed commands to be discoverable.

In other words, you first need to install Lightning (i.e., drush si or the web installer) in order to sub-profile it. This sucks, but unfortunately it seems to be a limitation of Drupal Console and I'm not sure there's anything Lightning can do about it. Sorry! :(