hundreds-father-404
07/13/2020, 5:47 PMhundreds-father-404
07/13/2020, 5:47 PMwitty-crayon-22786
07/13/2020, 5:48 PMhundreds-father-404
07/13/2020, 5:49 PMwitty-crayon-22786
07/13/2020, 5:51 PMGenerated Subtargets fleshed out
section?hundreds-father-404
07/13/2020, 5:51 PMhundreds-father-404
07/13/2020, 5:52 PMhundreds-father-404
07/13/2020, 6:32 PMwitty-crayon-22786
07/13/2020, 6:33 PMhundreds-father-404
07/13/2020, 6:34 PMsources
fieldwitty-crayon-22786
07/13/2020, 6:35 PMwitty-crayon-22786
07/13/2020, 6:36 PMhundreds-father-404
07/13/2020, 6:36 PMDependencies
should only be literal file names and/or literal addresses. No globs.witty-crayon-22786
07/13/2020, 6:42 PMhundreds-father-404
07/13/2020, 6:44 PMwitty-crayon-22786
07/13/2020, 8:08 PMwitty-crayon-22786
07/13/2020, 8:08 PMwitty-crayon-22786
07/13/2020, 8:10 PMhundreds-father-404
07/13/2020, 8:10 PMhundreds-father-404
07/13/2020, 8:10 PMwitty-crayon-22786
07/13/2020, 8:10 PMwitty-crayon-22786
07/13/2020, 8:11 PMwitty-crayon-22786
07/13/2020, 8:12 PMhundreds-father-404
07/13/2020, 8:14 PMwitty-crayon-22786
07/13/2020, 8:14 PMwitty-crayon-22786
07/13/2020, 8:14 PMhundreds-father-404
07/13/2020, 8:14 PMhundreds-father-404
07/13/2020, 8:15 PMthat can happen without ambiguityYes, but then you can ignore it like you normally would via
ignore_me.py
. There’s zero ambiguity what that means because there is only one owner. We don’t need a syntax to disambiguate between multiple owners.witty-crayon-22786
07/13/2020, 8:16 PMhundreds-father-404
07/13/2020, 8:16 PMwitty-crayon-22786
07/13/2020, 8:17 PMwitty-crayon-22786
07/13/2020, 8:18 PMhundreds-father-404
07/13/2020, 8:18 PMwitty-crayon-22786
07/13/2020, 8:19 PMwitty-crayon-22786
07/13/2020, 8:20 PMhundreds-father-404
07/13/2020, 8:20 PMhelloworld/app.py
showing up multiple times in the output, even though they are actually different generated subtargets.witty-crayon-22786
07/13/2020, 8:21 PMhundreds-father-404
07/13/2020, 8:21 PMwitty-crayon-22786
07/13/2020, 8:23 PMhundreds-father-404
07/13/2020, 8:23 PMhelloworld/app.py@original_owner
show up in the output of Pants. And as pointed out in the gdoc, we couldn’t special case when to show that verbose representation. It would need to always be verbose
So, I think the best solution is to have file args not use generated subtargets if there’s ambiguity.
In general, we can discourage users from using multiple ownerswitty-crayon-22786
07/13/2020, 8:23 PMwitty-crayon-22786
07/13/2020, 8:24 PMI feel really strongly that we do not want to haveif that is what someone will (eventually) need to put in a BUILD file to select that file unambiguously, then it seems consistent to.show up in the output of Pants.helloworld/app.py@original_owner
witty-crayon-22786
07/13/2020, 8:24 PMhundreds-father-404
07/13/2020, 8:24 PMhundreds-father-404
07/13/2020, 8:25 PM@
) would be worth it for this one edge case. There are already lots of new concepts we’re introducing.hundreds-father-404
07/13/2020, 8:26 PMhundreds-father-404
07/13/2020, 8:27 PMwitty-crayon-22786
07/13/2020, 8:29 PMwitty-crayon-22786
07/13/2020, 8:29 PMhundreds-father-404
07/13/2020, 8:29 PMwitty-crayon-22786
07/13/2020, 8:30 PMwitty-crayon-22786
07/13/2020, 8:30 PMwitty-crayon-22786
07/13/2020, 8:30 PMhundreds-father-404
07/13/2020, 8:31 PMwitty-crayon-22786
07/13/2020, 8:35 PMhundreds-father-404
07/13/2020, 8:36 PM- CLI -> don’t generate subtargets and use all the original owners
witty-crayon-22786
07/13/2020, 8:36 PMwitty-crayon-22786
07/13/2020, 8:37 PMhundreds-father-404
07/13/2020, 8:37 PMwitty-crayon-22786
07/13/2020, 8:37 PMhundreds-father-404
07/13/2020, 8:38 PMassuming we have a way to render the ambiguous caseThis would imply, imo, that what we render also works in BUILD files. Which is what I want to defer.
hundreds-father-404
07/13/2020, 8:38 PMwitty-crayon-22786
07/13/2020, 8:38 PMwitty-crayon-22786
07/13/2020, 8:38 PMhundreds-father-404
07/13/2020, 8:39 PMSpecifiedSourcsSnapshot
, which I really was excited to remove. But I think it’s worth it because adding new syntax is a much bigger deal than cleaning up some internal abstractionswitty-crayon-22786
07/13/2020, 8:50 PM