traversable_spec_target = self.get_target_from_spec(traversable_spec,
relative_to=target_address.spec_path)
if traversable_spec_target not in target.dependencies:
self.inject_dependency(dependent=target.address,
dependency=traversable_spec_target.address)
target.mark_transitive_invalidation_hash_dirty()
After Change
traversable_address = Address.parse(traversable_spec, relative_to=target_address.spec_path)
self.maybe_inject_address_closure(traversable_address)
if not any(traversable_address == t.address for t in target.dependencies):
self.inject_dependency(dependent=target.address, dependency=traversable_address)
target.mark_transitive_invalidation_hash_dirty()