hundreds-father-404
07/23/2020, 5:59 PMdependencies --transitive
will be that that single file depends on every single thing the original owning target depended upon.witty-crayon-22786
07/23/2020, 6:00 PMwitty-crayon-22786
07/23/2020, 6:01 PMhundreds-father-404
07/23/2020, 6:01 PMhundreds-father-404
07/23/2020, 6:01 PMconftest.py
)witty-crayon-22786
07/23/2020, 6:01 PMif inference:
subtargets do not depend on one another automatically
can be made to depend on one another via a self-dep
else:
subtargets depend on one another
witty-crayon-22786
07/23/2020, 6:02 PMwitty-crayon-22786
07/23/2020, 6:03 PMhappy-kitchen-89482
07/23/2020, 6:04 PMwitty-crayon-22786
07/23/2020, 6:10 PMwitty-crayon-22786
07/23/2020, 6:10 PMwitty-crayon-22786
07/23/2020, 6:11 PMhundreds-father-404
07/23/2020, 6:12 PMdependencies
for everything, even though 4 files don’t want itwitty-crayon-22786
07/23/2020, 6:13 PMwitty-crayon-22786
07/23/2020, 6:14 PMwitty-crayon-22786
07/27/2020, 5:11 PMenough-analyst-54434
07/27/2020, 5:31 PMwitty-crayon-22786
07/27/2020, 5:32 PM./pants dependencies/dependees/list
etc.enough-analyst-54434
07/27/2020, 5:33 PMwitty-crayon-22786
07/27/2020, 5:34 PM./pants test ::
by doing more precise change detection (but it’s unclear how far off that is with remoting)enough-analyst-54434
07/27/2020, 5:35 PMwitty-crayon-22786
07/27/2020, 5:35 PM./pants dependencies
will render file addresses now as well as target addresses.enough-analyst-54434
07/27/2020, 5:36 PMwitty-crayon-22786
07/27/2020, 5:36 PMwitty-crayon-22786
07/27/2020, 5:36 PMenough-analyst-54434
07/27/2020, 5:37 PMhundreds-father-404
07/27/2020, 5:38 PMso we agree those goals should not really feature in any arguments.The point I would push back is that those goals are very useful right now for debugging with users, and to give them insight into what Pants is doing. For example, before generated subtargets, you could use
./pants list f.py
to see all the owning targets.
I think we should be open to changing these goals, but that we should make sure the end effect still facilitates debugging and allows your every day Pants user (who is not on Slack) to have some insight into what Pants is doing.witty-crayon-22786
07/27/2020, 5:39 PMenough-analyst-54434
07/27/2020, 5:39 PMwitty-crayon-22786
07/27/2020, 5:40 PMhundreds-father-404
07/27/2020, 5:40 PMBut my point is you can always make a new metadata goalYeah, I think I agree. With an acknowledgment that we may be breaking some current workflows, e.g. scripts that use
dependencies
.
We’re already doing this by not having ported most goals like minimize
and paths
, and that’s the point of 2.0. But we should continue to keep it in mind where we are breaking things for v1 users.enough-analyst-54434
07/27/2020, 5:43 PMwitty-crayon-22786
07/27/2020, 5:44 PMwitty-crayon-22786
07/27/2020, 5:44 PMwitty-crayon-22786
07/27/2020, 5:45 PMenough-analyst-54434
07/27/2020, 5:46 PMwitty-crayon-22786
07/27/2020, 5:47 PMenough-analyst-54434
07/27/2020, 5:48 PMwitty-crayon-22786
07/27/2020, 5:48 PMwitty-crayon-22786
07/27/2020, 5:49 PMenough-analyst-54434
07/27/2020, 5:52 PMwitty-crayon-22786
07/27/2020, 5:53 PMfile@target
or something like it.enough-analyst-54434
07/27/2020, 5:55 PMwitty-crayon-22786
07/27/2020, 5:57 PMwitty-crayon-22786
07/27/2020, 5:57 PMenough-analyst-54434
07/27/2020, 6:03 PMentry_point
to a python_binary
target and a package
to a jvm_resources
target that supports prefixing resources with a package un-related to their location on disk. That requires two targets in the BUILD file today and multiple ownership ensues. With an untyped target metadata bag, you just add the two required fields for the two different rules to the one target and get no artifical ownership issues.witty-crayon-22786
07/27/2020, 6:08 PMwitty-crayon-22786
07/27/2020, 6:09 PMenough-analyst-54434
07/27/2020, 6:22 PMwitty-crayon-22786
07/27/2020, 6:24 PMentry_point
needing to be in alignment. on the other hand, you lose the repetition, which is a benefit.witty-crayon-22786
07/27/2020, 6:25 PMentry_point
and provides
or w/e other field has been much more rare in practice than combining entry_point
and entry_point
enough-analyst-54434
07/27/2020, 6:28 PM