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

Drush no longer loads drush/drushrc.php automatically #3027

Closed
grasmash opened this issue Oct 6, 2017 · 3 comments
Closed

Drush no longer loads drush/drushrc.php automatically #3027

grasmash opened this issue Oct 6, 2017 · 3 comments

Comments

@grasmash
Copy link
Contributor

grasmash commented Oct 6, 2017

Previously, executing drush in a given directory would automatically load configuration from the relatively located drush/drushrc.php. This no longer happens.

I'm not sure whether this is a bug in drush, or if perhaps this file needs to be moved to a different location to be automatically discovered.

@grasmash grasmash changed the title Drush no longer loads drush/drushrc.php Drush no longer loads drush/drushrc.php automatically Oct 6, 2017
@greg-1-anderson
Copy link
Member

Are you using Drush 9? The configuration files are now called drush.yml.

I'm not sure OTTOMH whether $(pwd)/drush is a search location. __DRUPAL_ROOT__/drush is, though.

@weitzman
Copy link
Member

weitzman commented Oct 6, 2017

I'm not really feeling the love for this feature. Please use a drush.yml in a global location if you want it back. Pretty sure those can specify additional config dirs to check.

@weitzman weitzman closed this as completed Oct 6, 2017
@greg-1-anderson
Copy link
Member

greg-1-anderson commented Oct 6, 2017

In theory, you could add this to your ~/.drush/drush.yml (untested):

drush:
  paths:
    config: '${env.cwd}/drush'

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

No branches or pull requests

3 participants