我已经设置了一个具有以下布局的本地SVN存储库
trunk
satis
libraryA
trunk
src
composer.json
tags
branches
哪符合文档。
我满意的配置如下:
{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
{
"type": "vcs",
"url": "https://myrepo/trunk/satis/libraryA"
}
],
"require-all": true
}
我已选择此设置以防止必须单独为每个库创建一个svn存储库。
现在我收到以下错误:
[Composer\Repository\InvalidRepositoryException]
No valid composer.json was found in any branch or tag of https://myrepo/trunk/satis/libraryA, could not load a package from it.
虽然我很确定libraryA / trunk中的composer.json是有效的(它传递composer validate
)
答案 0 :(得分:1)
我自己找到了解决方案。虽然我认为这不是首选方法。
{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
{
"type": "vcs",
"url": "https://myrepo/trunk/"
"branches-path" : "satis/libraryA"
}
],
"require-all": true
}