Hi

This is what I get when I run drush master-export in a scope called 'vagrant':

$conf['master_version'] = 2;
$conf['master_modules'] = array(
  'base' => array(
    0 => 'devel',
    1 => 'feature_site_config',
  ),
);

And this is what I have in my settings.php file:

$conf['master_modules'] = array(
  'base' => array(
    'feature_site_config',
  ),
  'vagrant' => array(
    'devel',
  ),
  'dev' => array(),
  'test' => array(),
  'ra' => array(),
  'prod' => array(),
);

Am I wrong saying that I should expect to get the devel dependency inside the current scope (vagrant) instead of "base"?

Comments

pere orga’s picture

Issue summary: View changes
pere orga’s picture

Issue summary: View changes
pere orga’s picture

Title: rush master-export does not work as expected » drush master-export does not work as expected
derhasi’s picture

Title: drush master-export does not work as expected » Add support for updating master configuration with drush master-export
Category: Bug report » Feature request
Status: Needs work » Active

This works as designed. drush master-export cannot know what part of your active modules shall be part of a separate scope. It is meant to be a scaffolding command, to get you started with the initial setup of Master-driven project. The script does not care about the currently active scope. Currently the command is only designed to work for an empty master config. (For getting your initial structure you would have used drush master-export --scopes=vagrant,dev,test,ra,prod.)

I guess you are expecting, that the diff of the base scope and the current module set will be the configuration for your current set? We could add that as a feature to the master-export command. I changed the title of the issue ;)

pere orga’s picture

To be honest, I don't really need that feature, it's just that I didn't read the documentation and I expected to see this other behaviour

derhasi’s picture

Priority: Normal » Minor
Status: Active » Closed (works as designed)

I'll close that issue, as you don't need the feature ;)