From 408d23f285c109b842cffe4779548d690654ea83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Rowlands=20=28=EB=B3=80=EA=B8=B0=ED=98=B8=29?= Date: Fri, 8 Sep 2023 19:28:11 +0900 Subject: [PATCH] repo: use is_repo_import to check for imports in `outs_graph` (#9925) repo: use is_repo_import to check for imports --- dvc/repo/graph.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dvc/repo/graph.py b/dvc/repo/graph.py index 3ee0d4e3f..be7a25559 100644 --- a/dvc/repo/graph.py +++ b/dvc/repo/graph.py @@ -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):