Composer / Packagist / Github:如何判断哪个版本稳定?

时间:2016-10-05 15:52:19

标签: php github composer-php packagist

我收到所需包phpmd/phpmd的版本冲突,我不确定为什么无法解析通用版本。

运行composer require yvoronoy/magento2-bash-completion会产生......

Problem 1
    - Installation request for yvoronoy/magento2-bash-completion ^1.0@beta -> satisfiable by yvoronoy/magento2-bash-completion[1.0.0-beta].
    - Conclusion: remove phpmd/phpmd 2.4.3
    - Conclusion: don't install phpmd/phpmd 2.4.3
    - yvoronoy/magento2-bash-completion 1.0.0-beta requires phpmd/phpmd 2.3.* -> satisfiable by phpmd/phpmd[2.3.0, 2.3.1, 2.3.2, 2.3.3].
    - Can only install one of: phpmd/phpmd[2.3.0, 2.4.3].
    - Can only install one of: phpmd/phpmd[2.3.1, 2.4.3].
    - Can only install one of: phpmd/phpmd[2.3.2, 2.4.3].
    - Can only install one of: phpmd/phpmd[2.3.3, 2.4.3].
    - Installation request for phpmd/phpmd (locked at 2.4.3, required as @stable) -> satisfiable by phpmd/phpmd[2.4.3].

我的主要应用composer.json有以下内容。

{
    "minimum-stability": "alpha",
    "require-dev": {
        "phpmd/phpmd": "@stable",
    }   
}

yvoronoy/magento2-bash-completion有自己的composer.json,其中包含以下内容。

{
    "minimum-stability": "stable",  
    "require": {
        "phpmd/phpmd": "2.3.*",
    }
}

查看Github页面(https://github.com/phpmd/phpmd),phpmd/phpmd的版本不应该由2.3.3解析为composer.json,因为该版本已被标记(即稳定)在github?

0 个答案:

没有答案