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

Running composer victor show fails with path error #8

@wernerdweight

Description

@wernerdweight

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions