Recursive dependencies in packages from custom "package" repository not being installed #11993
Replies: 1 comment
-
In package repositories you have to specify all the package metadata in the repository definition. As you do not define any requires there are no requires processed. So yes this is completely expected. The composer.json file is completely ignored in such a case. SO it should look like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm having some trouble with getting the dependencies of a package which isn't available in the packagist repository installed. Here's a minimal reproducible example:
In the case demonstrated above,
composer install --no-dev
does not install the dependencies in mediawiki/elastica's composer.json (https://github.com/wikimedia/mediawiki-extensions-Elastica/blob/c45dc17eabcdcba2608119886ab271c70ec85a16/composer.json), for example elasticsearch/elasticsearch. It only installs mediawiki/elastica itself.I'd expect it to install those dependencies, like it would if mediawiki/elastica was available in the normal packagist repository. For example, if I try and install phpunit/phpunit, things work as I expect:
Is this expected? Does anyone have any ideas for how this problem can be worked around?
are the composer/PHP versions I'm using.
Beta Was this translation helpful? Give feedback.
All reactions