is there a way to get `Addresses` from `PathGlobs`...
# general
r
is there a way to get
Addresses
from
PathGlobs
or
DigestContents
?
h
How so? What's the use case?
r
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
so you can parse the contents of the file and feed it into
Get(Address, AddressInput)
or
Get(Addresses, UnparsedAddressInputs)
👀 1
r
went with
Get(Addresses, UnparsedAddressInputs)
and it works great appreciate the help!
❤️ 1
h
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