When trying to execute drush fst mytheme from outside the Drupal installation folder (in a Grunt + grunt-drush package task for example) the drush_locate_root() call returns false causing the following error:

Source directory /themes/contrib/zurb_foundation/STARTER/ is not readable or does not exist.

Grunt task example:

      'create-subtheme': {
        args: [
          'fst',
          'mytheme',
          '--root=' + buildProperties.target_dir + '/docroot',
        ]
      }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sveggiani created an issue. See original summary.

sveggiani’s picture

sveggiani’s picture

sveggiani’s picture

Status: Active » Needs review
kevinquillen’s picture

Has anyone had trouble in general using Drush to create a subtheme? I have found it to be hit or miss with Drush 8.

samuel.mortenson’s picture

Status: Needs review » Fixed

While we are considering moving to Drupal Console and removing our custom Drush commands for the 8.x-*.x branches, this change makes sense to me and is used in other contrib to determine the root Drupal path.

Status: Fixed » Closed (fixed)

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