check if dep is available before dfs

This commit is contained in:
Dinesh Yeduguru 2025-01-17 14:59:45 -08:00
parent 3ef1f0e1e2
commit 9659fe6792

View file

@ -270,7 +270,7 @@ def topological_sort(
deps.append(dep)
for dep in deps:
if dep not in visited:
if dep not in visited and dep in providers_with_specs:
dfs((dep, providers_with_specs[dep]), visited, stack)
stack.append(api_str)