Answer the question
In order to leave comments, you need to log in
Managing nested dependencies with Composer?
I can't understand why composer doesn't want to work: I have two repositories: Main and Second.
Main composer.json:
{
"name":"Elfet/Main",
"type":"library",
"require":{
"php":">=5.3.0"
}
}
{
"name":"Elfet/Second",
"type":"library",
"require":{
"php":">=5.3.0",
"Elfet/Main":"dev-master"
},
"repositories":[
{
"type":"git",
"url":"http://github.com/Elfet/Main"
}
]
}
{
"require":{
"php":">=5.3.0",
"Elfet/Second":"dev-master"
},
"repositories":[
{
"type":"git",
"url":"http://github.com/Elfet/Second"
}
]
}
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for elfet/second dev-master -> satisfiable by Elfet/Second dev-master.
- Elfet/Second dev-master requires elfet/main dev-master -> no matching package found.
Answer the question
In order to leave comments, you need to log in
Not sure if this is it, but most likely...
You may run into problems when using custom repositories because Composer does not load the repositories of your requirements, so you have to redefine those repositories in all your composer.json files.
getcomposer.org/doc/faqs/why-can't-composer-load-repositories-recursively.md _
1. Did you publish elfet/second on packagist?
2. Try to add in the third composer.json"minimum-stability": "dev"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question