repo: use is_repo_import to check for imports in outs_graph (#9925)

repo: use is_repo_import to check for imports
This commit is contained in:
Peter Rowlands (변기호)
2023-09-08 16:13:11 +05:45
committed by GitHub
parent 7fb8a9a427
commit 408d23f285
+2 -3
View File
@@ -158,10 +158,9 @@ def build_outs_graph(graph, outs_trie):
outs_graph.add_nodes_from(outs_trie.values())
for stage in graph.nodes():
if stage.is_repo_import:
continue
for dep in stage.deps:
if dep.fs_path is None:
# RepoDependency don't have a path
continue
dep_key = dep.fs.path.parts(dep.fs_path)
overlapping = [n.value for n in outs_trie.prefixes(dep_key)]
if outs_trie.has_subtrie(dep_key):