Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/remove drushrc.php #123

Closed
lmakarov opened this issue May 20, 2019 · 0 comments
Closed

Update/remove drushrc.php #123

lmakarov opened this issue May 20, 2019 · 0 comments
Assignees

Comments

@lmakarov
Copy link
Member

lmakarov commented May 20, 2019

example.drushrc.php for drush 8.x no longer lists the options we have been setting in /home/docker/.drush/drushrc.php since drush 6.

Specifically, this hack is not there:

/**
* Load a drushrc file from the 'drush' folder at the root of the current
* git repository. Example script below by Grayside. Customize as desired.
* @see: http://grayside.org/node/93.
*/
$repo_dir = drush_get_option('root') ? drush_get_option('root') : getcwd();
if (drush_shell_exec('cd %s && git rev-parse --show-toplevel 2> ' . drush_bit_bucket(), $repo_dir)) {
$output = drush_shell_exec_output();
$repo_top = $output[0];
$options['config'] = $repo_top . '/drush/drushrc.php';
$options['include'] = $repo_top . '/drush/commands';
$options['alias-path'] = $repo_top . '/drush/aliases';
}

It is used to detect the repo root and load drush settings from the top level drush folder in the repo.
It helps drush detect this folder when run from PROJECT_ROOT. Without the hack, drush has to be run from DOCROOT to properly detect a Drupal project root/etc.

As well as this option:

$options['dump-dir'] = '/tmp';

It may make sense to drop drushrc.php altogether, since these two configuration cases look to be deprecated at this point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant