are the order of dependencies returned by `Get(Tra...
# plugins
a
are the order of dependencies returned by
Get(TransitiveTargets, TransitiveTargetsRequest)
deterministic? And can I rely on them to be a top-down order of dependedness? I.e. would this pass:
Copy code
seen = set()
for target in transitive_targets.dependencies[::-1]:
  assert set(target.dependencies).issubset(seen)
  seen.add(target)
f
I think so, since
transitive_targets.dependencies
is a FrozenOrderedSet the values should always be sorted. Likely by alphabetical order of the target address but I’m not sure.
👍 1
h
a
From what I'm understanding from this. You can rely on the order, but not in any meaningfully helpful way. And i'm going to need to recalculate the order to determine the "leaf" dependencies.