Resolve dependencies between projects a packages
Given a list of names, try to sort them in the correct order.
Parameters: |
|
---|
The solving is a bit tricky: the idea is that the list of projects retruned is the list of projects that have to be built.
So for instance, assuiming the ‘hello’ always depends on ‘world’
- Projects=[‘hello’, ‘world’], packages = [] , names=[‘hello]’ -> projects = [‘hello’, ‘world]
- Projects=[‘hello’], packages = [‘world’], names=[‘hello]’ -> projects = [‘hello’]
- Projects=[‘hello’, ‘world’], packages = [‘world’] , names=[‘hello]’ -> projects = [‘hello’, ‘world]
But, you can force using the ‘world’ from sources if you specify add ‘world’ to the list of project names:
- Projects=[‘hello’, ‘world’], packages = [‘world’] , names=[‘hello’, ‘world’] -> projects = [‘hello’, ‘world]