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

rapid-bird-79300

06/02/2022, 9:35 PM
is there a way to get
Addresses
from
PathGlobs
or
DigestContents
?
h

hundreds-father-404

06/02/2022, 9:46 PM
How so? What's the use case?
r

rapid-bird-79300

06/02/2022, 9:52 PM
testing witha custom dependency inference plugin. Trying to see if I can make these paths as dependencies: https://github.com/njgrisafi/pants-example/blob/ebf51262a5c7a03b699a34c240190c8bc00f34ea/pants-plugins/custom_infer/rules.py#L87-L93 but that requires address to be used
h

hundreds-father-404

06/02/2022, 9:55 PM
so you can parse the contents of the file and feed it into
Get(Address, AddressInput)
or
Get(Addresses, UnparsedAddressInputs)
👀 1
r

rapid-bird-79300

06/02/2022, 10:02 PM
went with
Get(Addresses, UnparsedAddressInputs)
and it works great appreciate the help!
❤️ 1
h

hundreds-father-404

06/02/2022, 10:03 PM
fyi my work today & tomorrow is to give better error messages when those operations fail. Right now it doesn't say the source of the invalid address...
👍 1