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() lookup_dag_hash = spec.build_spec[virtual].dag_hash()
break break
except KeyError: except KeyError:
pass # This is a new dependency
else: tty.debug(f"{spec} does not have relocation for {name}")
raise KeyError(f"{spec} does not depend on {name}")
if lookup_dag_hash in hash_to_old_prefix: if lookup_dag_hash in hash_to_old_prefix:
old_dep_prefix = hash_to_old_prefix[lookup_dag_hash] old_dep_prefix = hash_to_old_prefix[lookup_dag_hash]