mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 15:28:28 +01:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user