I am in the process of switching a Drupal 7 site to a composer-managed workflow, using packages from https://packages.drupal.org/7

The package drupal/menu_attach_block 1.2.0 has a requirement of drupal/rebuild-block, for which no matching package is found. It is not possible to install using that package.

Can anyone clarify this? Is the dependency bogus, in which case can we get that removed from the package definition?

Comments

John Pitcairn created an issue. See original summary.

cameron tod’s picture

Assigned: Unassigned » cameron tod

I'm not sure where that dependency came from. It's certainly not something I've specified anywhere. I'll have a look into it for you.

cameron tod’s picture

Some notes for posterity:

$ composer require drupal/menu_attach_block
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for drupal/menu_attach_block ^1.20 -> satisfiable by drupal/menu_attach_block[1.20.0].
    - drupal/menu_attach_block 1.20.0 requires drupal/rebuild-block * -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
cameron tod’s picture

cameron tod’s picture

Status: Active » Postponed

Ok - I've posted an issue in the Drupal.org Composer project queue. Let's see what they come back with.

Mixologic’s picture

It should work now. Ambigious dependency declarations, and the fact that the release was last year meant that it got incorrect dependencies. I've re-run the dependency calculator and composer metadata builder and it should no longer believe that it depends on 'rebuild-block'.

cameron tod’s picture

Fantastic! All works well now. I'll add namespaces to the info file to explicitly exclude anything ambiguous.

  • Cameron Tod committed 80e0310 on 7.x-1.x
    Issue #2810005: Added namespaces to dependencies.
    
cameron tod’s picture

Status: Postponed » Fixed

Thanks for the report @John Pitcairn and thanks for your help @Mixologic!

johnpitcairn’s picture

Great, thanks - that's one less custom package declaration in my composer.json file.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.