badoo / jira-client

Badoo JIRA API Client with code generator
GNU General Public License v3.0
66 stars 19 forks source link

Fixed path to vendor/autoload.php in bin scripts #1

Closed rosmanov closed 4 years ago

rosmanov commented 4 years ago

The vendor binaries under bin directory failed to load vendor/autoload.php when called from a dependent project using the symlinks generated by Composer. For example, the following commands:

cd /path/to/someproject
composer init
composer require 'badoo/jira-client'
./vendor/bin/find-field -h

failed with output similar to this:

PHP Warning:  require(/path/to/someproject/vendor/badoo/jira-client/bin/../vendor/autoload.php): failed to open stream: No such file or directory in /path/to/someproject/vendor/badoo/jira-client/bin/find-field on line 8
PHP Fatal error:  require(): Failed opening required '/path/to/someproject/vendor/badoo/jira-client/bin/../vendor/autoload.php' (include_path='.:/usr/share/php7:/usr/share/php') in /path/to/someproject/vendor/badoo/jira-client/bin/find-field on line 8