don't check for targeted downstream from providers

Since outputs now rely on providers in order to ensure that a schema is
available for evaluation, we need to exclude providers from checking
TargetDownstream.
This commit is contained in:
James Bardin 2018-05-29 11:07:09 -04:00 committed by Martin Atkins
parent fd4b427162
commit 02a6657a71
1 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,12 @@ func (t *TargetsTransformer) addDependencies(targetedNodes *dag.Set, g *Graph) (
vertices := queue
queue = nil // ready to append for next iteration if neccessary
for _, v := range vertices {
// providers don't cause transitive dependencies, so don't target
// downstream from them.
if _, ok := v.(GraphNodeProvider); ok {
continue
}
dependers := g.UpEdges(v)
if dependers == nil {
// indicates that there are no up edges for this node, so