yii2-rbac-module icon indicating copy to clipboard operation
yii2-rbac-module copied to clipboard

Composer: reference is not a tree

Open Merisho opened this issue 9 years ago • 2 comments

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

  • && git reset --hard "11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f" -- fatal: reference is not a tree: 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f

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

Merisho avatar Aug 14 '15 20:08 Merisho

При установке через 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

  • Installing vova07/yii2-rbac-module (0.1.0) Cloning 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f is gone (history was rewritten?)

MaxFlower avatar Oct 28 '15 11:10 MaxFlower

Решено(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

yiigenius avatar May 21 '16 14:05 yiigenius