【发布时间】:2014-04-28 13:59:22
【问题描述】:
我一直在使用 Magento Firegento 自定义 Composer 安装程序,但遇到了我不理解的这种奇怪的 Composer 行为。
考虑以下简单的composer.json 文件
{
"require": {
"magento-hackathon/magento-composer-installer": "*"
}
}
如果我用这个composer.json 文件运行compser.phar install,我会得到以下信息。
$ composer.phar install --no-dev
Loading composer repositories with package information
Installing dependencies
- Installing aoepeople/composer-installers (v0.0.1)
Loading from cache
Writing lock file
Generating autoload files
根据我大部分外行的理解composer.phar,我说过
嗨,作曲家,请从 packagist.org 安装
magento-hackathon/magento-composer-installer包
作曲家已经回复我了
先生,是的,先生!这是
aoepeople/composer-installers包
当我询问 magento-hackathon/magento-composer-installer 时,我不明白为什么 composer 安装了 aoepeople/composer-installers。
明确一点:我理解未安装 magento-hackathon/magento-composer-installer 的原因是这是一个位于 different composer repository 中的软件包。我最初的错误是没有在我的composer.json 文件中包含这个存储库。
然而,composer 会安装与我要求的不同的软件包,这对我来说是没有意义的。当我search packagist there's no magento-hackathon/magento-composer-installer extension。
为什么 packagist 安装不同的扩展程序?幕后发生了什么使magento-hackathon/magento-composer-installer 解析为aoepeople/composer-installers?我将来如何/在作曲家源代码中自己调试这种东西?
【问题讨论】:
标签: php magento composer-php