git - Composer: Can not get my custom repository from my server -
i wanted create own repository composer. let's phone call myrepo.git. created , set composer.json on root of repo has minimum this:
{ "name": "my/myrepo", "description" : "my repository", "version": "1.0.0", }
i set git server i'm able git this:
git clone git://myserver.com/myrepo.git
but want composer. created composer.json on workstation:
{ "repositories": [ { "type": "vcs", "url": "git://myserver.com/myrepo.git" } ] }
an after called composer install. finished without error repository not fatched. have no thought why. when seek add together there repository github fill fetch without problem, repository not. no error. nothing. output this:
composer install loading composer repositories bundle info installing dependencies (including require-dev) nil install or update generating autoload files
so thing have wrong in repository (myrepo.git). if don't understand have no error in composer install command. idea?
if have composer.lock
file composer install
read dependencies file , install. -> in case should run composer update my/myrepo
instead.
you have tagged version within composer.json
. have tagged version in git, too? don't know happens if not. git tagged version should same or leave version
property out (recommended):
https://getcomposer.org/doc/04-schema.md#version
note: packagist uses vcs repositories, statement above much true packagist well. specifying version end creating problems @ point due human error.
if have same name + version installed have forcefulness install deleting installed library (by our own risk") rm -rf vender/my/myrepo
. eventuelly there improve approve force.
git repository composer-php
No comments:
Post a Comment