rewiring: new dependencies may not have relocation information

This commit is contained in:
Gregory Becker 2024-07-10 16:27:58 -07:00
parent 95b9be2c14
commit 9b53bb09f5

View File

@ -2116,9 +2116,9 @@ def relocate_package(spec):
lookup_dag_hash = spec.build_spec[virtual].dag_hash()
break
except KeyError:
pass
else:
raise KeyError(f"{spec} does not depend on {name}")
# This is a new dependency
tty.debug(f"{spec} does not have relocation for {name}")
if lookup_dag_hash in hash_to_old_prefix:
old_dep_prefix = hash_to_old_prefix[lookup_dag_hash]