我正在尝试在Symfony 2.1中使用composer从不支持composer且可能永远不会支持composer的github库中拉取供应商。
例如:
旧的Deps文件:
[jQuery]
git=git://github.com/jquery/jquery.git
version=1.8.1
[Mocha]
git=https://github.com/visionmedia/mocha.git
Composer(无法工作)
"repositories": [
{
"type": "package",
"package": {
"name": "jquery",
"version": "1.8.1",
"dist": {
"url": "git://github.com/jquery/jquery.git",
"type": "git"
}
}
}
],
"require": {
"jquery": "1.8.1"
}
"source": { "url": "https://github.com:/angular/angular.js.git", "type": "git", "reference": "v1.1.5" }
- Michael