遇到了作曲家的问题。我有一个主要项目,正在与一些我建立的小型图书馆合作,我希望更轻松地分享我的项目。它们远不是准备好的,所以我不想将它们添加到packagist中,但是当我需要另一个时,它将会出错,除非我在我的主composer上也添加了自定义存储库。 ,第三要求无法解决packagist库作曲家自定义存储库包无法拉取依赖关系
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ethereal/simpleCache dev-master requires predis/predis ^[email protected] -> no matching package found.
- ethereal/simpleCache dev-master requires predis/predis ^[email protected] -> no matching package found.
- Installation request for ethereal/simplecache dev-master -> satisfiable by ethereal/simpleCache[dev-master].
主要项目composer.json:
{
"name": "ethereal/SimpleTable",
"type": "project",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mathus13/SimpleConfig.git"
}
],
"require": {
"php": ">=5.3.9",
"doctrine/dbal": "^[email protected]",
"ethereal/SimpleConfig": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"autoload": {
"psr-4": {
"Ethereal\\": "lib"
}
}
}
配置库:在SimpleTable运行作曲家更新时,简单的缓存将不被包括在内,除非在SimpleTable明确要求。
{
"name": "ethereal/SimpleConfig",
"type": "project",
"version": "0.0.1",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mathus13/SimpleCache.git"
}
],
"require": {
"php": ">=5.3.9",
"ethereal/SimpleCache": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"autoload": {
"psr-4": {
"Ethereal\\": "lib"
}
}
}
缓存库:当在SimpleTable中运行作曲家更新时,predis无法解析。
{
"name": "ethereal/simpleCache",
"type": "project",
"version": "0.0.1",
"require": {
"predis/predis": "^[email protected]",
"php": ">=5.3.9"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"autoload": {
"psr-4": {
"Ethereal\\": "lib"
}
}
}
感谢您的深入解释。很有帮助! –