nepster-web
@nepster-web

Почему composer не тянет вложенные зависимости?

Работаю с yii2 и учусь создавать пакеты.

Создал свой пакет прописал его в основной конфигурационный файл:
"require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "*",
         ...
        "nepster-web/yii2-module-users": "dev-master"
    },


composer update:
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for nepster-web/yii2-module-users dev-master -> satis
fiable by nepster-web/yii2-module-users[dev-master].
    - nepster-web/yii2-module-users dev-master requires nepster-web/yii2-modules
-installer dev-master -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
 problems.


Дело в том, что мой пакет yii2-module-users зависит от еще 1 пакета yii2-modules-installer.

В конфигурационном файле composer.json моего пакета yii2-module-users я указал все зависимости:

"require": {
        "yiisoft/yii2": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "nepster-web/yii2-modules-installer": "dev-master",
        "vova07/yii2-console-runner-extension":  "dev-master"
    },


И при этом при установке налетаю на вышеуказанную ошибку.

Однако, если в главном файле composer.json указать нужный пакет:
"require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "*",
         ...
        "nepster-web/yii2-modules-installer": "dev-master",
        "nepster-web/yii2-module-users": "dev-master"
    },


То все работает как нужно.

Подскажите пожалуйста почему composer не подхватывает все зависимости пакета yii2-module-users ?
  • Вопрос задан
  • 2448 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы