I have a kit my own theme, which uses Radix as its base theme. No matter what path I try to put in, Radix is always expecting that path to be located inside themes/contrib/radix/src/kits/

Example 1: Relative

drush --include="web/themes/contrib/radix" radix:create "testie" --kit=web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom
 0/2 [>---------------------------]   0% [error]  RecursiveDirectoryIterator::__construct(themes/contrib/radix/src/kits/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom): failed to open dir: No such file or directory
 [error]
 [error]  Exit code 1
 2/2 [============================] 100%

Example 2: Absolute

drush --include="web/themes/contrib/radix" radix:create "testie" --kit=/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom
 0/2 [>---------------------------]   0% [error]  RecursiveDirectoryIterator::__construct(themes/contrib/radix/src/kits//web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom): failed to open dir: No such file or directory
 [error]
 [error]  Exit code 1
 2/2 [============================] 100%

Just FYI, the kit is definitely there:

ls -l  web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom
README.md                   config
apigee_custom.info.yml      css
apigee_custom.libraries.yml js
apigee_custom.theme
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jacine created an issue. See original summary.

shadcn’s picture

Assigned: Unassigned » shadcn
Status: Active » Needs review
FileSize
1 KB

OK here's a patch that allow kits to live inside CUSTOM_THEME/src/kits. You should be able to run:

drush --include="web/themes/contrib/radix" radix:create "Sunday" --kit=apigee_custom

Jacine, can you test and let me know? Thanks.

  • arshadcn committed 01ad03b on 8.x-4.x
    Issue #3081150 by arshadcn, Jacine: Drush subtheme generator expects the...
shadcn’s picture

Status: Needs review » Fixed

I've been using this patch over the weekend with multiple base themes and kits and so far no issues. I'm going to go ahead and commit this. We can follow up if there's anything else. Thank you.

Jacine’s picture

Thanks so much @arshadcn! I just tested this and it's working great. 👍

Status: Fixed » Closed (fixed)

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