composer / satis

Simple static Composer repository generator - For a full private Composer repo use Private Packagist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

执行php bin/satis build satis.json public/ 报错

wangyu1209 opened this issue · comments

配置文件信息
[root@VM-4-8-centos satis]# cat satis.json
{
"name": "PHP Composer offline warehouse",
"homepage": "http://packages.local.com",
"repositories": [
{"type": "vcs", "url": "https://github.com/wangyu1209/Script.git"}
],
"require-all": true
}

报错信息如下:
[root@VM-4-8-centos satis]# php bin/satis build satis.json public/

[UnexpectedValueException]
Unknown package has no name defined ([{"name":"composer/composer","version":"dev-master","version_normalized
":"dev-master","source":{"type":"git","url":"https://github.com/composer/composer.git","reference":"fc57c
97f9f6f1a309dd51a9312218d052b8940c7"},"dist":{"type":"zip","url":"https://api.github.com/repos/composer/
composer/zipball/fc57c97f9f6f1a309dd51a9312218d052b8940c7","reference":"fc57c97f9f6f1a309dd51a9312218d052b8
940c7","shasum":""},"require":{"justinrainbow/json-schema":"~1.1","php":">=5.3.2","seld/jsonlint":"1.*","sy
mfony/console":"~2.3","symfony/finder":"~2.2","symfony/process":"~2.1"},"require-dev":{"phpunit/phpunit":
"~3.7.10"},"suggest":{"ext-openssl":"Enabling the openssl extension allows you to access https URLs for repos
itories and packages","ext-zip":"Enabling the zip extension allows you to unzip archives, and allows gzip com
pression of all internet traffic"},"time":"2014-06-05T14:10:53+00:00","bin":["bin/composer"],"type":"library
","extra":{"branch-alias":{"dev-master":"1.0-dev"}},"installation-source":"dist","autoload":{"psr-0":{"Compos
er":"src/"}},"notification-url":"https://packagist.org/downloads/","license":["MIT"],"authors":[{"name":
"Jordi Boggiano","email":"j.boggiano@seld.be","homepage":"http://seld.be","role":"Developer"},{"name":"Nils
Adermann","email":"naderman@naderman.de","homepage":"http://www.naderman.de","role":"Developer"}],"descrip
tion":"Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the rig
ht stack everywhere.","homepage":"http://getcomposer.org/","keywords":["autoload","dependency","package"],
"install-path":"./composer"},{"name":"justinrainbow/json-schema","version":"1.3.6","version_normalized":"1.
3.6.0","source":{"type":"git","url":"https://github.com/justinrainbow/json-schema.git","reference":"d97cf
3ce890fe80f247fc08594a1c8a1029fc7ed"},"dist":{"type":"zip","url":"https://api.github.com/repos/justinrain
bow/json-schema/zipball/d97cf3ce890fe80f247fc08594a1c8a1029fc7ed","reference":"d97cf3ce890fe80f247fc08594a
1c8a1029fc7ed","shasum":""},"require":{"php":">=5.3.0"},"require-dev":{"json-schema/json-schema-test-suite":
"1.1.0","phpdocumentor/phpdocumentor":"~2","phpunit/phpunit":"~3.7"},"time":"2014-03-05T15:03:52+00:00","bi
n":["bin/validate-json"],"type":"library","extra":{"branch-alias":{"dev-master":"1.4.x-dev"}},"installation-
source":"dist","autoload":{"psr-0":{"JsonSchema":"src/"}},"notification-url":"https://packagist.org/downl
oads/","license":["BSD-3-Clause"],"authors":[{"name":"Igor Wiedler","email":"igor@wiedler.ch","homepage":"ht
tp://wiedler.ch/igor/"},{"name":"Bruno Prieto Reis","email":"bruno.p.reis@gmail.com"},{"name":"Justin Rai
nbow","email":"justin.rainbow@gmail.com"},{"name":"Robert Sch\u00f6nthal","email":"seroscho@googlemail.com","
homepage":"http://digitalkaoz.net"}],"description":"A library to validate a json schema.","homepage":"https
://github.com/justinrainbow/json-schema","keywords":["json","schema"],"install-path":"../justinrainbow/
json-schema"},{"name":"seld/jsonlint","version":"1.1.2","version_normalized":"1.1.2.0","source":{"type":"git
","url":"https://github.com/Seldaek/jsonlint.git","reference":"7cd4c4965e17e6e4c07f26d566619a4c76f8c672"}
,"dist":{"type":"zip","url":"https://api.github.com/repos/Seldaek/jsonlint/zipball/7cd4c4965e17e6e4c07
f26d566619a4c76f8c672","reference":"7cd4c4965e17e6e4c07f26d566619a4c76f8c672","shasum":""},"require":{"php":"

=5.3.0"},"time":"2013-11-04T15:41:11+00:00","bin":["bin/jsonlint"],"type":"library","installation-source":"
dist","autoload":{"psr-0":{"Seld\JsonLint":"src/"}},"notification-url":"https://packagist.org/downloads\
/","license":["MIT"],"authors":[{"name":"Jordi Boggiano","email":"j.boggiano@seld.be","homepage":"http://se
ld.be","role":"Developer"}],"description":"JSON Linter","keywords":["json","linter","parser","validator"],"in
stall-path":"../seld/jsonlint"},{"name":"symfony/console","version":"v2.5.0","version_normalized":"2.5.0.0
","target-dir":"Symfony/Component/Console","source":{"type":"git","url":"https://github.com/symfony/Con
sole.git","reference":"ef4ca73b0b3a10cbac653d3ca482d0cdd4502b2c"},"dist":{"type":"zip","url":"https://api.g
ithub.com/repos/symfony/Console/zipball/ef4ca73b0b3a10cbac653d3ca482d0cdd4502b2c","reference":"ef4ca73b0
b3a10cbac653d3ca482d0cdd4502b2c","shasum":""},"require":{"php":">=5.3.3"},"require-dev":{"psr/log":"~1.0","s
ymfony/event-dispatcher":"~2.1"},"suggest":{"psr/log":"For using the console logger","symfony/event-dispat
cher":""},"time":"2014-05-22T08:54:24+00:00","type":"library","extra":{"branch-alias":{"dev-master":"2.5-dev"
}},"installation-source":"dist","autoload":{"psr-0":{"Symfony\Component\Console\":""}},"notification-url":
"https://packagist.org/downloads/","license":["MIT"],"authors":[{"name":"Fabien Potencier","email":"fabie
n@symfony.com","homepage":"http://fabien.potencier.org","role":"Lead Developer"},{"name":"Symfony Community
","homepage":"http://symfony.com/contributors"}],"description":"Symfony Console Component","homepage":"htt
p://symfony.com","install-path":"../symfony/console/Symfony/Component/Console"},{"name":"symfony/find
er","version":"v2.5.0","version_normalized":"2.5.0.0","target-dir":"Symfony/Component/Finder","source":{"ty
pe":"git","url":"https://github.com/symfony/Finder.git","reference":"307aad2c541bbdf43183043645e186ef2cd6
b973"},"dist":{"type":"zip","url":"https://api.github.com/repos/symfony/Finder/zipball/307aad2c541bbdf
43183043645e186ef2cd6b973","reference":"307aad2c541bbdf43183043645e186ef2cd6b973","shasum":""},"require":{"ph
p":">=5.3.3"},"time":"2014-05-22T13:47:45+00:00","type":"library","extra":{"branch-alias":{"dev-master":"2.5-
dev"}},"installation-source":"dist","autoload":{"psr-0":{"Symfony\Component\Finder\":""}},"notification-ur
l":"https://packagist.org/downloads/","license":["MIT"],"authors":[{"name":"Fabien Potencier","email":"fa
bien@symfony.com","homepage":"http://fabien.potencier.org","role":"Lead Developer"},{"name":"Symfony Commun
ity","homepage":"http://symfony.com/contributors"}],"description":"Symfony Finder Component","homepage":"h
ttp://symfony.com","install-path":"../symfony/finder/Symfony/Component/Finder"},{"name":"symfony/proc
ess","version":"v2.5.0","version_normalized":"2.5.0.0","target-dir":"Symfony/Component/Process","source":{"
type":"git","url":"https://github.com/symfony/Process.git","reference":"5d7d78e23894544740219e006320678cf
a4cd45b"},"dist":{"type":"zip","url":"https://api.github.com/repos/symfony/Process/zipball/5d7d78e2389
4544740219e006320678cfa4cd45b","reference":"5d7d78e23894544740219e006320678cfa4cd45b","shasum":""},"require":
{"php":">=5.3.3"},"time":"2014-05-23T09:02:52+00:00","type":"library","extra":{"branch-alias":{"dev-master":"
2.5-dev"}},"installation-source":"dist","autoload":{"psr-0":{"Symfony\Component\Process\":""}},"notificati
on-url":"https://packagist.org/downloads/","license":["MIT"],"authors":[{"name":"Fabien Potencier","email
":"fabien@symfony.com","homepage":"http://fabien.potencier.org","role":"Lead Developer"},{"name":"Symfony C
ommunity","homepage":"http://symfony.com/contributors"}],"description":"Symfony Process Component","homepa
ge":"http://symfony.com","install-path":"../symfony/process/Symfony/Component/Process"},{"name":"twig\
/twig","version":"v1.15.1","version_normalized":"1.15.1.0","source":{"type":"git","url":"https://github.com
/fabpot/Twig.git","reference":"1fb5784662f438d7d96a541e305e28b812e2eeed"},"dist":{"type":"zip","url":"https
://api.github.com/repos/fabpot/Twig/zipball/1fb5784662f438d7d96a541e305e28b812e2eeed","reference":"1fb
5784662f438d7d96a541e305e28b812e2eeed","shasum":""},"require":{"php":">=5.2.4"},"time":"2014-02-13T10:19:29+0
0:00","type":"library","extra":{"branch-alias":{"dev-master":"1.15-dev"}},"installation-source":"dist","autol
oad":{"psr-0":{"Twig_":"lib/"}},"notification-url":"https://packagist.org/downloads/","license":["BSD-3-
Clause"],"authors":[{"name":"Fabien Potencier","email":"fabien@symfony.com","homepage":"http://fabien.poten
cier.org","role":"Lead Developer"},{"name":"Armin Ronacher","email":"armin.ronacher@active-4.com","role":"Pro
ject Founder"},{"name":"Twig Team","homepage":"https://github.com/fabpot/Twig/graphs/contributors","rol
e":"Contributors"}],"description":"Twig, the flexible, fast, and secure template language for PHP","homepage"
:"http://twig.sensiolabs.org","keywords":["templating"],"install-path":"../twig/twig"}]).

build [--no-html-output] [--skip-errors] [file] [output-dir] [packages1] ... [packagesN]