문제

I have setup a local SVN repository with the following layout

trunk
  satis
    libraryA
      trunk
        src
        composer.json
      tags
      branches

Which is complying with the documentation.

My satis configuration looks like this:

{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
    {
        "type": "vcs",
        "url": "https://myrepo/trunk/satis/libraryA"
    }
],
"require-all": true
}

I have chosen for this setup to prevent having to create a svn repository for each library separately.

Now I am getting the following error:

[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.

While I am quite sure that the composer.json in libraryA/trunk is valid (it passes composer validate)

도움이 되었습니까?

해결책

I have found a solution myself. Although I do not think this is the preferred method.

{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
    {
        "type": "vcs",
        "url": "https://myrepo/trunk/"
        "branches-path" : "satis/libraryA"
    }
],
"require-all": true
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top