Issue Bug Closed

#93098Missing 'depends' section in ext_emconf.php leads to error

Sebastian Michaelsen 12/17/20, 13:04 updated 09/24/22, 14:18

Description

If an extension has no 'depends' section in ext_emconf.php, but requires packages via composer.json, then during install:generatepackagestates an error is raised:

The package “myext” depends on “my/composer-package” which is not present in the system.

When putting 'constraints' => ['depends' => []], into ext_emconf.php it works fine.

Especially for project specific local extensions you may not have any dependencies specified. When it works with the empty depends array, it should also be possible to leave it out entirely.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.