Skip to content

Relative root paths no longer seem to work #2909

@jhedstrom

Description

@jhedstrom

When switching from Drush 8 to Drush 9, I noticed that relative --root paths don't seem to work for providing the core location.

Here's output for a build that exists in build/html:

With relative --root

$> vendor/bin/drush -r build/html status
 PHP binary    : /usr/local/Cellar/php70/7.0.12_5/bin/php
 PHP config    : /usr/local/etc/php/7.0/php.ini
 PHP OS        : Darwin
 Drush script  : /.../vendor/bin/drush
 Drush version : 9.0-dev-g65c2383
 Drush temp    : /tmp
 Drush configs :
 Drush aliases : /.../.drush/aliases.drushrc.php
                 /.../.drush/drupalEight.aliases.drushrc.php

With no --root (behaves the same as with absolute path for root arg)

$> vendor/bin/drush status

 Drupal version : 8.4.0-beta1
 Site URI       : http://default
 PHP binary     : /usr/local/Cellar/php70/7.0.12_5/bin/php
 PHP config     : /usr/local/etc/php/7.0/php.ini
 PHP OS         : Darwin
 Drush script   : /.../vendor/bin/drush
 Drush version  : 9.0-dev-g65c2383
 Drush temp     : /tmp
 Drush configs  :
 Drush aliases  : /.../.drush/aliases.drushrc.php
                  /.../.drush/drupalEight.aliases.drushrc.php
 Drupal root    : /.../build/html
 Site path      : sites/default

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions