dependencies in composer.json and info.yml clash
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3533165. --> Reported by: [joachim](https://www.drupal.org/user/107701) Related to !18 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I can't install alpha 3 with composer because of a requirements problem:</p> <pre>composer require "drupal/localgov_waste_collection:1.0.0-alpha3" --dry-run<br><br>&nbsp; Problem 1<br>&nbsp;&nbsp;&nbsp; - Root composer.json requires drupal/localgov_waste_collection 1.0.0-alpha3 -&gt; satisfiable by drupal/localgov_waste_collection[1.0.0-alpha3].<br>&nbsp;&nbsp;&nbsp; - drupal/localgov_core 2.14.2 requires drupal/metatag ^2.0.2 -&gt; found drupal/metatag[dev-2.0.x, dev-2.1.x, 2.0.2, ..., 2.1.x-dev (alias of dev-2.1.x)] but it conflicts with your root composer.json require (^1.16).<br>&nbsp;&nbsp;&nbsp; - drupal/localgov_core 2.14.7 requires drupal/field_group ^4.0 -&gt; found drupal/field_group[dev-4.x, 4.0.0-alpha1, 4.0.0, 4.x-dev (alias of dev-4.x)] but the package is fixed to 3.6.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.<br>&nbsp;&nbsp;&nbsp; - drupal/localgov_waste_collection 1.0.0-alpha3 requires drupal/localgov_core * -&gt; satisfiable by drupal/localgov_core[2.14.2, 2.14.7].</pre><p>The problem is that while this module's composer.json has:</p> <pre> "localgovdrupal/localgov_core": "^2.12",</pre><p>its info file has:</p> <pre>dependencies:<br>&nbsp; - localgov_core:localgov_core</pre><p>and d.org's packaging system appears to merge anything it thinks is present in the info.yml but missing from the composer.json into the resulting packagist metadata:</p> <p>Doing </p> <p>&gt; composer show -a drupal/localgov_waste_collection 1.0.0-alpha3</p> <p>shows:</p> <pre>requires<br>drupal/core ^10.0 || ^11.0<br>drupal/localgov_core *<br>localgovdrupal/localgov_core ^2.12<br>spatie/icalendar-generator ^2.9</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue