vova07 / yii2-rbac-module

This module provide an RBAC managing system for your yii2 application.
19 stars 6 forks source link

Composer: reference is not a tree #3

Open Merisho opened 9 years ago

Merisho commented 9 years ago

Hi. I've got a problem, smth like this: [RuntimeException] Failed to execute git checkout "11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f" -

I'm not really good at composer, git and etc, so sorry if I ain't see an obvious errors

MaxFlower commented 8 years ago

При установке через Composer: [RuntimeException] Failed to execute git checkout "11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f" -- && git reset --hard "11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f" -- fatal: reference is not a tree: 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f

Я думаю связано с тем, что написано выше: Failed to download vova07/yii2-rbac-module from dist: 'C:\OpenServer\domains\shporshop.ru\advanced\vendor/vova07/yii2-rbac-module/e3d8f6843fd18fed0ba3e3ceddde2adb' is not a zip archive. Now trying to download from source

yiigenius commented 8 years ago

Решено(Solved): Нужно явно указать репозитории в composer.json (Add to composer.json) :

{
....
,
"repositories":[
    {
    "type": "git",
    "url": "https://github.com/vova07/yii2-users-module",
    "url": "https://github.com/vova07/yii2-rbac-module"
    }
]
}

Спасибо (Thanks) https://github.com/BrSlava :+1: https://github.com/vova07/yii2-users-module/issues/13#issuecomment-136136198