contao-community-alliance / composer-plugin

Composer plugin that provide contao integration and installer.
GNU Lesser General Public License v3.0
7 stars 10 forks source link

Local repositories don't work #35

Closed Toflar closed 9 years ago

Toflar commented 9 years ago

Hey guys,

It seems like the plugin does not support local repositories. I've added

    "repositories": [
        {
            "type": "git",
            "url": "/absolute/path/to/my/git/repository"
        }
    ],

and when I update in the back end, it tells me it could not find a composer.json in "/absolute/path/to/my/git/repository". However when I cd to TL_ROOT/composer and call composer update on my CLI manually, it works fine.

tristanlins commented 9 years ago

Have you tried "url": "file:/absolute/path/to/my/git/repository" or "url": "file:///absolute/path/to/my/git/repository"?

Toflar commented 9 years ago

Works, thx :-)

However, I don’t know if this should be fixed as in the Composer docs it doesn’t say you need to prepend file:// :-)=