https://pantsbuild.org/ logo
f

fast-nail-55400

07/20/2021, 3:18 PM
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
w

witty-crayon-22786

07/20/2021, 5:51 PM
does go allow cycles between compiled modules?