Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error "No driver found to handle VCS repository" on Composer and SVN

I'm new with Composer, I've already followed https://getcomposer.org/doc/05-repositories.md#subversion-options structure to create example using Composer.

Howerver, I'm getting following error message with Composer and SVN when using command composer install:

[InvalidArgumentException]
No driver found to handle VCS repository http://myexamplesvn/MyCommon-1.0/.....

Here is my setting:

"repositories": [
    {
        "type": "vcs",
        "url": "http://myexamplesvn/MyCommon-1.0/"
    }
],
"require": {
    "my-common/my-common":"*"
}

Could you provide me any idea or suggestion?

like image 590
hamitana Avatar asked Jun 27 '14 03:06

hamitana


2 Answers

I was having a similar issue with a github repo when using the HTTPS address:

{
    "type": "vcs",
    "url": "https://github.com:<user>/<repo>"
}

but using the SSH .git path worked for me:

{
    "type": "vcs",
    "url": "[email protected]:<user>/<repo>.git"
}

If the repo that you're using doesn't have a composer.json then a composer.json with code like this might work:

"require": {
    "<user>/<repo>": "dev-<branch>"
},
"repositories": [
    {
        "type": "package",
        "package": {
            "name": "<user>/<repo>",
            "version": "dev-<branch>",
            "dist": {
                "url": "https://github.com/<user>/<repo>/archive/<branch>.zip",
                "type": "zip"
            }
        }
    }
]
like image 182
ZoidbergWill Avatar answered Oct 23 '22 10:10

ZoidbergWill


If your pulling package locally, make sure to

git init 

and commit

like image 34
Jagadesha NH Avatar answered Oct 23 '22 09:10

Jagadesha NH