exp run: fix failure when dependencies are from inside submodules (#10832)

This commit is contained in:
skshetry
2025-08-06 21:32:00 +05:45
committed by GitHub
parent e619b6dccd
commit 5485e5662e
+4 -1
View File
@@ -305,7 +305,10 @@ def add_no_submodules(
for p in paths:
abs_path = os.path.abspath(p)
if abs_path in submodule_roots or abs_path.startswith(tuple(submodule_roots)):
if any(
abs_path == root or abs_path.startswith(root + os.sep)
for root in submodule_roots
):
skipped_paths.append(p)
else:
repo_paths.append(p)