2016-05-01 33 views
0

根據https://getcomposer.org/doc/articles/aliases.md#require-inline-alias我嘗試使用別名來修補使用克隆回購的東西。爲了進行測試,我需要從該回購庫中請求補丁分支(在這種情況下稱爲deps)。作曲家使用內聯別名時找不到包

然而作曲家失敗:

composer require -vvv php-pm/[email protected] 

    [InvalidArgumentException] 
    Could not find package php-pm/[email protected] 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回購是克隆並具有deps分支。

爲什麼作曲家不能在desirec分支中要求包別名回購?

回答

0

這是尷尬。在命令行上它需要

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

通知的:而不是@