how do i get from a given target, to an digest fro...
# general
f
how do i get from a given target, to an digest from all its sources + dependencies? … i can resolve a
TransitiveTargetsRequest
which has a
closure
of all
Target
types … but, what is the easiest way to get the full digest to pass to a
Process
from that?
h
use
SourceFiles
over all the transitive targets
f
💡 🤔
h
(which is simply an ergonomic improvement over calling
HydratedSources
on each individual target)
f
made it work! — thanks 👍 this was a great help as well, to see how things play together
❤️ 1
h
yay! out of curiosity, what plugin are you writing?
f
jsonnet language support
i have gotten super crude (using regex) dependency inference to work i think — now looking at being able to evaluate
🙌 1
h
awesome! fyi protobuf depenedency inference uses regex too, rather than a real parser. if you want more examples of dep inference
❤️ 1
🙏 1