https://pantsbuild.org/ logo
#general
Title
# general
f

freezing-lamp-12123

11/01/2022, 2:21 PM
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

hundreds-father-404

11/01/2022, 2:21 PM
use
SourceFiles
over all the transitive targets
f

freezing-lamp-12123

11/01/2022, 2:22 PM
💡 🤔
h

hundreds-father-404

11/01/2022, 2:24 PM
(which is simply an ergonomic improvement over calling
HydratedSources
on each individual target)
f

freezing-lamp-12123

11/01/2022, 2:36 PM
made it work! — thanks 👍 this was a great help as well, to see how things play together
❤️ 1
h

hundreds-father-404

11/01/2022, 2:38 PM
yay! out of curiosity, what plugin are you writing?
f

freezing-lamp-12123

11/01/2022, 2:42 PM
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

hundreds-father-404

11/01/2022, 2:43 PM
awesome! fyi protobuf depenedency inference uses regex too, rather than a real parser. if you want more examples of dep inference
❤️ 1
🙏 1
7 Views