It's possible to break your site if the new install profile won't be able to see an enabled module.

Eg, suppose I have module foo in profiles/oldprofile/modules/foo. Once I switch to newprofile, the extension system will no longer find the foo module.

It would be nice, but probably complicated, if the profile switcher command could check for this before executing.

Comments

joachim created an issue.

geek-merlin’s picture

A quick start for this:

$ drush php
>>> preg_grep('~^profiles/~', \Drupal::service('extension.list.module')->getPathnames())
=> [
     "drutopia" => "profiles/contrib/drutopia/drutopia.info.yml",
     "drutopia_home_page" => "profiles/contrib/drutopia/modules/custom/drutopia_home_page/drutopia_home_page.info.yml",
   ]

;-)