Composer php 专用编写器存储库
我已经按照以下布局设置了一个本地SVN存储库Composer php 专用编写器存储库,composer-php,satis,Composer Php,Satis,我已经按照以下布局设置了一个本地SVN存储库 trunk satis libraryA trunk src composer.json tags branches 符合文件要求 我的satis配置如下所示: { "name": "My repo", "homepage": "http://myrepo", "repositories": [ { "type": "vcs",
trunk
satis
libraryA
trunk
src
composer.json
tags
branches
符合文件要求
我的satis配置如下所示:
{
"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
),但我自己已经找到了一个解决方案。虽然我不认为这是首选的方法
{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
{
"type": "vcs",
"url": "https://myrepo/trunk/"
"branches-path" : "satis/libraryA"
}
],
"require-all": true
}
我自己也找到了解决办法。虽然我不认为这是首选的方法
{
"name": "My repo",
"homepage": "http://myrepo",
"repositories": [
{
"type": "vcs",
"url": "https://myrepo/trunk/"
"branches-path" : "satis/libraryA"
}
],
"require-all": true
}