in a plugin, how do I convert from a generated subtarget to the original target from the BUILD file?
h
hundreds-father-404
07/20/2021, 3:42 PM
Afk, but iirc there's a method on Addresss to get the BUILD target. You could do await Get(WrappedTarget, Addresss)
f
fast-nail-55400
07/20/2021, 4:11 PM
in the meantime, I found
UnexpandedTargets
which seemed to solve it by not expanding subtargets in the first place
longer term: for Go file targets don’t make sense semantically, there should be a way to suppress that expansion without rules having to do so each time