I am trying to specify a site root with --root and it is failing to find the settings.php file.
The root is validating properly with drush_valid_drupal_root(), but _drush_bootstrap_drupal_site_validate() is failing as drupal_site_path() is called without passing the validated root, and then in drupal_site_path() it calls drupal_locate_root() which once again returns the wrong value, because none of these functions are being passed the root set with --root.
I'm not really sure why this hasn't shown up previously.
Comments
Comment #1
mikey_p commentedNevermind, I forgot that drush CWD to the drupal root to finish bootstrapping, and I had a permissions issue.