梨包未解析



突然间,作曲家无法解析特定的梨包(net_gearman)。以前一切都工作正常,没有任何问题。在我的开发人员计算机上,我没有收到任何错误,并且软件包安装成功,但在 CI 服务器上,我不断收到以下错误:

     [exec] Updating dependencies (including require-dev)
     [exec] Your requirements could not be resolved to an installable set of packages.
     [exec] 
     [exec]   Problem 1
     [exec]     - acsi/acsi-job dev-trunk requires pear-pear/net_gearman * -> no     matching package found.
     [exec] 
     [exec] Potential causes:
     [exec]  - A typo in the package name
     [exec]  - The package is not available in a stable-enough version according to your    minimum-stability setting
     [exec]    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
     [exec] 
     [exec] Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

我的根作曲家.json定义了梨存储库:

{
    "repositories": [
        {
            "type": "pear",
            "url": "http://pear.php.net"
        }
    ]
}

另一个包需要Net_Gearman库:

{
    "require": {
        "pear-pear/Net_Gearman": "*",
        "pear-pear/PEAR": "*"
    }
}

我在干净的 VCS 结帐后运行作曲家命令,所以还没有供应商地图和 composer.lock。我尝试了以下命令:

composer install --prefer-dist
composer install --prefer-source

两者都会导致上述相同的错误。有人建议我如何解决这个问题?

这应该有效:

{
    "require": {
        "pear-pear.php.net/Net_Gearman": "*",
    }
}

相关内容

  • 没有找到相关文章

最新更新