1

我已经设置了具有以下布局的本地 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

4

1 回答 1

1

我自己找到了解决方案。虽然我不认为这是首选方法。

{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
    {
        "type": "vcs",
        "url": "https://myrepo/trunk/"
        "branches-path" : "satis/libraryA"
    }
],
"require-all": true
}
于 2013-04-08T09:10:03.247 回答