But doesn't require "composer-runtime-api": "^2.2".
roman:~/work/project$ kirby
PHP Warning: require_once(/home/roman/.config/composer/vendor/getkirby/cli/bin/../vendor/autoload.php): Failed to open stream: No such file or directory in /home/roman/.config/composer/vendor/getkirby/cli/bin/kirby on line 24
PHP Fatal error: Uncaught Error: Failed opening required '/home/roman/.config/composer/vendor/getkirby/cli/bin/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/roman/.config/composer/vendor/getkirby/cli/bin/kirby:24
Stack trace:
#0 {main}
thrown in /home/roman/.config/composer/vendor/getkirby/cli/bin/kirby on line 24
But $_composer_autoload_path doesn't exist (starts from composer 2.2) and __DIR__ . '/../vendor/autoload.php' assumes that __DIR__ should point to ~/.config/composer/bin, but in reality it is ~/.config/composer/vendor/getkirby/cli/bin
The kirby file in ~/.config/composer/bin is just a symlink. I guess that is also something that changed in composer 2.2
can confirm that updating composer (to 2.4 actually) does resolve the problem.
So, something like composer-runtime-api": "^2.2" or so requirement could be useful
But doesn't require
"composer-runtime-api": "^2.2"
.The problem points to this line:
But
$_composer_autoload_path
doesn't exist (starts from composer 2.2) and__DIR__ . '/../vendor/autoload.php'
assumes that__DIR__
should point to~/.config/composer/bin
, but in reality it is~/.config/composer/vendor/getkirby/cli/bin
The
kirby
file in~/.config/composer/bin
is just a symlink. I guess that is also something that changed in composer 2.2