Open noblige opened 3 years ago
Perhaps! I think every case where I've used this, the inputs (e.g. a dataset, source code, a config file) have already existed. Being able to generate a parent from nothing is an interesting idea, and I agree the current behaviour isn't right.
And thanks for the patch! I'll take a closer look and get back to you in a bit.
https://github.com/njwilson23/depgraph/blob/e73dfdfe4ac618f46b331c05f95307fed1bfe07b/depgraph/depgraph.py#L331 should this have roots added to the list? E.g.:
Otherwise I'm not seeing any code that would produce items that don't have any parents? Simple code:
Output only builds child, not the parent: