使用内联别名时,Composer无法找到包

时间:2016-05-01 09:09:28

标签: composer-php

根据https://getcomposer.org/doc/articles/aliases.md#require-inline-alias我正在尝试使用别名来使用克隆的repo修补内容。为了测试,我需要从该repo需要补丁分支(在本例中称为deps)。

然而作曲家失败了:

composer require -vvv php-pm/httpkernel-adapter@dev-deps

   [InvalidArgumentException]
   Could not find package php-pm/httpkernel-adapter@dev-deps at any version for your minimum-stability (dev). Check the package spelling or your minimum-stability

我的composer.json中的别名如下所示:

...
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/andig/php-pm-httpkernel"
    }
]

andig/php-pm-httpkernel repo是一个克隆版,并且有deps分支。

为什么作曲家不能在desirec分支中要求别名repo的包?

1 个答案:

答案 0 :(得分:0)

这很令人尴尬。在命令行上,它必须是

26 Apr 2016 21:51:44 [rserver] ERROR system error 98 (Address already in use); 
OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<boost::asio::ip::tcp>&, const string&, const string&)
 /tmp/rstudio-rstudio-5dbc604/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103;
 LOGGED FROM: int main(int, char* const*) /tmp/rstudio-rstudio-5dbc604/src/cpp/server/ServerMain.cpp:438

请注意composer require -vvv php-pm/httpkernel-adapter:dev-deps 而不是: