Skip to content

Locally installed export-command should override phar-bundled version #5673

@drzraf

Description

@drzraf

Bug Report

Describe the current, buggy behavior

Package is only very partially overridden by classes from a locally installed version of the package (classes from ~/.wp-cli/packages/vendor/wp-cli/export-command)

Describe how other contributors can replicate this bug

sudo curl -sLo wp https://github.com/wp-cli/wp-cli/.../wp-cli-1.5.0.phar && chmod +x ./wp
wp package install https://github.com/wp-cli/export-command.git ## <---- We override export-command
./wp eval "var_dump((new \ReflectionClass('\WP_Export_WXR_Formatter'))->getFileName(),
                    (new \ReflectionClass('\Export_Command'))->getFileName());"

Actual result

phar://./wp/vendor/wp-cli/export-command/src/WP_Export_WXR_Formatter.php
~/.wp-cli/packages/vendor/wp-cli/export-command/src/Export_Command.php

Desired result

~/.wp-cli/packages/vendor/wp-cli/export-command/src/WP_Export_WXR_Formatter.php
~/.wp-cli/packages/vendor/wp-cli/export-command/src/Export_Command.php

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions