yii-node-socket icon indicating copy to clipboard operation
yii-node-socket copied to clipboard

Broken dependency name

Open gplaza opened this issue 10 years ago • 6 comments

Error : oncesk/yii-node-socket dev-master requires oncesk/elephant.io * -> no matching package found

gplaza avatar Jan 18 '15 15:01 gplaza

I have used all the package of your github, but the name in https://github.com/oncesk/elephant.io.git it's not the same like the composer.json of this project.

https://github.com/oncesk/elephant.io.git : wisembly/elephant.io https://github.com/oncesk/yii-node-socket.git : oncesk/elephant.io

i don't understand exactly why there is "oncesk/elephant.io" in this project (is a required, so if is not found the composer dont allow to install the package...)

gplaza avatar Jan 20 '15 02:01 gplaza

work for me with this ugly config (shame on me i use Yii 1 version 2.0.0 of your project) :

 {
"repositories" : [ {
        "type" : "vcs",
        "url" : "https://github.com/gplaza/yii-node-socket.git"
    }, {
        "type" : "vcs",
        "url" : "https://github.com/oncesk/elephant.io.git"
    }
  ],
"require" : {

    "wisembly/elephant.io" : "dev-master",
    "oncesk/yii-node-socket" : "2.0.0"
},
"scripts" : {
    "post-install-cmd" : [
        "php -r \"system('rm -fr '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/elephant.io');\"",
        "php -r \"system('mv -f '.getcwd().'/vendor/wisembly/elephant.io '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/');\"",
        "php -r \"system('rm -fr '.getcwd().'/vendor/wisembly');\""
    ]
  }
 }

gplaza avatar Jan 20 '15 02:01 gplaza

Hi, sorry for this, i changed the name to oncesk/elephant.io, you can try to use dev-master.

Отправлено с моего Xiaomi

Сообщение от "gplaza [email protected]":

work for me with this ugly config (shame on me i use Yii 1 version 2.0.0 of your project) :

{ "repositories" : [ { "type" : "vcs", "url" : "https://github.com/gplaza/yii-node-socket.git" }, { "type" : "vcs", "url" : "https://github.com/oncesk/elephant.io.git" } ], "require" : {

"wisembly/elephant.io" : "dev-master", "oncesk/yii-node-socket" : "2.0.0" }, "scripts" : { "post-install-cmd" : [ "php -r "system('rm -fr '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/elephant.io');"", "php -r "system('mv -f '.getcwd().'/vendor/wisembly/elephant.io '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/');"", "php -r "system('rm -fr '.getcwd().'/vendor/wisembly');"" ] }

}

— Reply to this email directly or view it on GitHub.

oncesk avatar Jan 20 '15 04:01 oncesk

hi, now as you can see https://github.com/oncesk/yii-node-socket/blob/master/composer.json i added right composer requirements, but in my case composer do not want clone from github, only if i adding repositories section into project composer.json it works fine

oncesk avatar Jan 20 '15 06:01 oncesk

It's totaly normal, if the project is not register in https://packagist.org/ we must add a repositories section ...

gplaza avatar Jan 20 '15 12:01 gplaza

ок, documentation was updated on github =) thank you for your help

oncesk avatar Jan 20 '15 12:01 oncesk