Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Running composer victor show fails with path error #8

Open
wernerdweight opened this issue Nov 28, 2018 · 0 comments
Open

Running composer victor show fails with path error #8

wernerdweight opened this issue Nov 28, 2018 · 0 comments

Comments

@wernerdweight
Copy link

Trying to run victor like composer victor show (after installing nella/victor as a dev-dependency via composer) fails with the following error:

$ composer victor show
> ./vendor/bin/victor 'show'
PHP Warning:  require(/var/www/html/test-project/vendor/nella/victor/bin/../vendor/composer/composer/src/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/test-project/vendor/nella/victor/bin/victor on line 8
PHP Fatal error:  require(): Failed opening required '/var/www/html/test-project/vendor/nella/victor/bin/../vendor/composer/composer/src/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/html/test-project/vendor/nella/victor/bin/victor on line 8

This is caused by invalid path in bin/victor on line 8.

Changing this:

require __DIR__ . '/../vendor/composer/composer/src/bootstrap.php';

to this:

require __DIR__ . '/../../../composer/composer/src/bootstrap.php';

fixes the error.

I will propose a patch for this issue (via PR) in a few moments.

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

No branches or pull requests

1 participant