Skip to content

Declare internal dependencies under the correct project name - #255

Open
stooit wants to merge 1 commit into
2.xfrom
fix/composer-project-prefix
Open

Declare internal dependencies under the correct project name#255
stooit wants to merge 1 commit into
2.xfrom
fix/composer-project-prefix

Conversation

@stooit

@stooit stooit commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The project on drupal.org is quantcdn, but every module declared its siblings under a project called quant. The packaging facade turns that into a requirement on drupal/quant-quant_api, which does not exist, so the module-level composer packages are uninstallable.

This is not new — it fails on the current stable release:

composer require drupal/quant:2.0.0
  - drupal/quant 2.0.0 requires drupal/quant-quant_api *
    -> could not be found in any version

drupal/quantcdn (the project-level package) resolves cleanly and requires only drupal/core: ^11, which is what people installing this have actually been using — hence nobody hitting the broken alias.

PR #254 changed quant_api and quant_search from drupal: to quant:. The original prefix was wrong and the replacement was too. This uses the project's real name. The remaining files carried quant: from long before that work.

Cross-project dependencies were already correct and are untouched: token:token, purge:purge, webform:webform, tome:tome_static.

Verified by uninstalling and reinstalling all six modules on Drupal 11.4, and phpcs clean.

Worth confirming the generated metadata on the next dev packaging run — the facade output is the thing this is actually trying to fix.

Every module here declared its siblings under a project called "quant".
The project on drupal.org is "quantcdn", so the packaging facade generated
a requirement on drupal/quant-quant_api, which does not exist. The
module-level composer packages are therefore uninstallable, and have been
for some time — composer require drupal/quant:2.0.0 fails today:

    - drupal/quant 2.0.0 requires drupal/quant-quant_api *
      -> could not be found in any version

drupal/quantcdn, the project-level package, resolves cleanly and is what
anyone installing this has actually been using, which is why the broken
alias went unnoticed.

An earlier commit changed quant_api and quant_search from "drupal:" to
"quant:". The first prefix was wrong and so was the second; this uses the
project's real name. The other files carried "quant:" from well before
this work.

Cross-project dependencies were already correct and are untouched:
token:token, purge:purge, webform:webform, tome:tome_static.

Verified by uninstalling and reinstalling all six modules on Drupal 11.4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant