Skip building graph for dependencies without path_info (#5103)

RepoDependency for example don't have any path_info

See: https://github.com/iterative/dvc/pull/4938#issuecomment-743709176
Related: #5035
This commit is contained in:
Saugat Pachhai
2020-12-15 16:34:39 +05:45
committed by GitHub
parent b0b04d44b1
commit aa4ec8acd5
+3
View File
@@ -136,6 +136,9 @@ def build_outs_graph(graph, outs_trie):
G.add_nodes_from(outs_trie.values())
for stage in graph.nodes():
for dep in stage.deps:
if dep.path_info is None:
# RepoDependency don't have a path_info
continue
dep_key = dep.path_info.parts
overlapping = [n.value for n in outs_trie.prefixes(dep_key)]
if outs_trie.has_subtrie(dep_key):