Skip to content

Require tagged dependencies in composer.json #521

@jonbot

Description

@jonbot

When a project is installing Moosh with Composer, and its minimum-stability is stable, Composer throws errors and will not install Moosh:

$ composer --version
Composer version 2.2.12 2022-04-13 16:42:25

$ composer require tmuras/moosh:@dev
./composer.json has been updated
Running composer update tmuras/moosh
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tmuras/moosh[dev-master, dev-debian, 1.27] require moodlehq/moodle-mod_newmodule dev-master#e1f112be8842291259ece87de3000cd5f0e18711 -> could not be found in any version, there may be a typo in the package name.
    - tmuras/moosh 0.15.2 requires c9s/getoptionkit dev-master -> found c9s/getoptionkit[dev-master, 2.7.x-dev (alias of dev-master)] but it does not match your minimum-stability.
    - tmuras/moosh 0.18 requires corneltek/getoptionkit dev-master#13a146e0f7b9161977332279dff894fa28c53168 -> found corneltek/getoptionkit[dev-master, 2.7.x-dev (alias of dev-master)] but it does not match your minimum-stability.
    - tmuras/moosh[0.24, ..., 0.25] require corneltek/getoptionkit dev-master#3fd84905bb13d713477f1356beac1f9f9367ddcf -> found corneltek/getoptionkit[dev-master, 2.7.x-dev (alias of dev-master)] but it does not match your minimum-stability.
    - tmuras/moosh[dev-0.x-debian, 0.26, ..., 0.36] require mudrd8mz/moodle-tool_pluginskel dev-master -> found mudrd8mz/moodle-tool_pluginskel[2016090700, 2017062100, 2018060100, 2018060101, 2018071500, 2019012000, 2019100800, 2019101100, 2021011200, 2021031300, 2021031400, 2021061400, 2021070200, 2023020800, 2025040900] but it does not match the constraint.
    - tmuras/moosh[dev-add-license-1, 0.x-dev, 1.2, ..., 1.25] require mudrd8mz/moodle-tool_pluginskel dev-main -> found mudrd8mz/moodle-tool_pluginskel[2016090700, 2017062100, 2018060100, 2018060101, 2018071500, 2019012000, 2019100800, 2019101100, 2021011200, 2021031300, 2021031400, 2021061400, 2021070200, 2023020800, 2025040900] but it does not match the constraint.
    - Root composer.json requires tmuras/moosh @dev -> satisfiable by tmuras/moosh[dev-master, dev-debian, dev-add-license-1, dev-0.x-debian, 0.15.2, ..., 0.x-dev, 1.2, ..., 1.27].

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.
 - It's a private package and you forgot to add a custom repository to find it

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

It would be helpful if Moosh required a range of tagged versions instead of dev-main/dev-master versions of dependencies. This would help projects using Moosh, and would likely be more stable for Moosh itself -- main/master branches will change with every commit added, whereas a tag will always be the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions