我有一个奇怪的问题...
项目A是我的主要项目。项目-B是我的图书馆,签到颠覆
作曲家.json of Project B-B
{
"name": "fragger/baseclasses",
"version" : "0.0.1-dev",
"description": "Baseclasses and Interfaces",
"require": {
"silex/silex": "1.0.x-dev",
"3rd-party/smarty": "3.*",
"swiftmailer/swiftmailer": "4.2-dev"
},
"autoload": {
"psr-0": { "baseclasses": "src/" }
}
}
和项目B的作曲家.json
{
"repositories" : [
{
"type": "vcs",
"url" : "svn+ssh://....."
}
],
"require": {
"fragger/baseclasses": ">=0.0.1-dev"
}
}
安装命令的输出
php composer.phar install
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for fragger/baseclasses >=0.0.1-dev -> satisfiable by fragger/baseclasses dev-trunk.
- fragger/baseclasses dev-trunk requires silex/silex 1.0.x-dev -> no matching package found.
但是作曲家单独安装在项目 a 中,工作正常
您可以在 packgist 上找到有关软件包的详细信息,例如 Silex
,但似乎所有依赖项都有无效的版本字符串。
而不是"silex/silex": "1.0.x-dev"
它必须命名为"silex/silex": "1.0.*@dev"
.1.0.x
没有分支,无论如何都会dev-branchname
分支的正确版本字符串;)