hundreds-father-404
07/21/2020, 10:00 PMhundreds-father-404
07/21/2020, 10:01 PM:utilsstrutil.pydirutil.py./pants dependencies strutil.pydirutil.py:utilsdirutil.pyhundreds-father-404
07/21/2020, 10:09 PMresourcesresourcesdependencies--dependency-inferencewitty-crayon-22786
07/21/2020, 10:15 PMhundreds-father-404
07/21/2020, 10:15 PMhundreds-father-404
07/21/2020, 10:16 PM!witty-crayon-22786
07/21/2020, 10:21 PMwitty-crayon-22786
07/21/2020, 10:28 PMPossibly, we should only use generated subtargets for file args ifor perhaps the inverse? a file Address is always subject to inference? it doesn’t resolve the resources issue… but could perhaps address that by never generating subtargets in that case.is enabled? But, that doesn’t solve the first question in this message about target types without inference.--dependency-inference
hundreds-father-404
07/21/2020, 10:32 PMhundreds-father-404
07/21/2020, 10:36 PMdependencieswitty-crayon-22786
07/21/2020, 10:40 PMwitty-crayon-22786
07/21/2020, 10:58 PMhundreds-father-404
07/21/2020, 10:59 PMwitty-crayon-22786
07/21/2020, 11:22 PMwitty-crayon-22786
07/21/2020, 11:22 PMhundreds-father-404
07/23/2020, 5:09 PMwitty-crayon-22786
07/23/2020, 5:10 PMI’m not sure how to resolve this. Possibly, when using a generated subtarget, we should no matter what create a dependency on every other file in the target?this is what i was thinking, yea.
witty-crayon-22786
07/23/2020, 5:10 PMhundreds-father-404
07/23/2020, 5:11 PMfileswitty-crayon-22786
07/23/2020, 5:11 PMhundreds-father-404
07/23/2020, 5:12 PMwitty-crayon-22786
07/23/2020, 5:12 PMOtherwise, yeah, I don’t see any other solution. We will never have inference on things likeso, actually: i responded to this on your other issue: i don’t think that this is the case. we will probably never infer a dep into a files targettargets, so the best that we can do is assume it depends on every other file in the original base target.files
witty-crayon-22786
07/23/2020, 5:13 PMhundreds-father-404
07/23/2020, 5:13 PM./pants dependencies f1.jsonf2.jsonhundreds-father-404
07/23/2020, 5:13 PMhundreds-father-404
07/23/2020, 5:14 PMwitty-crayon-22786
07/23/2020, 5:14 PMWhat do you mean?@hundreds-father-404: just agreeing with the issue in this thread. if i run
./pants test $filewitty-crayon-22786
07/23/2020, 5:15 PMdependencies f1.jsonwitty-crayon-22786
07/23/2020, 5:16 PMwitty-crayon-22786
07/23/2020, 5:16 PMwitty-crayon-22786
07/23/2020, 5:17 PMwitty-crayon-22786
07/23/2020, 5:17 PMwitty-crayon-22786
07/23/2020, 5:18 PMwitty-crayon-22786
07/23/2020, 5:18 PMwitty-crayon-22786
07/23/2020, 5:19 PMhundreds-father-404
07/23/2020, 5:20 PMbut an an Address gets you exactly one TargetI would love to keep this a thing. It makes it much easier to reason through how Pants internals work.
hundreds-father-404
07/23/2020, 5:21 PMwitty-crayon-22786
07/23/2020, 5:26 PMwitty-crayon-22786
07/23/2020, 5:26 PMwitty-crayon-22786
07/23/2020, 5:27 PM./pants list $filewitty-crayon-22786
07/23/2020, 5:27 PM$filewitty-crayon-22786
07/23/2020, 5:28 PM./pants list $filehundreds-father-404
07/23/2020, 5:29 PM./pants list --owner./pants list --originalwitty-crayon-22786
07/23/2020, 5:29 PM./pants dependeeswitty-crayon-22786
07/23/2020, 5:30 PMhundreds-father-404
07/23/2020, 5:33 PM(assuming that base targets depend on file/sub targets)I remain skeptical to this model change. https://pantsbuild.slack.com/archives/C0D7TNJHL/p1595523264215100?thread_ts=1595463762.203000&cid=C0D7TNJHL It’s already confusing enough for rule authors to have “original targets” vs. “generated subtargets”. Adding “generated base target” to the mix makes my head spin hehe
hundreds-father-404
07/23/2020, 5:34 PM./pants list --originalwitty-crayon-22786
07/23/2020, 5:36 PMIt’s already confusing enough for rule authors to have “original targets” vs. “generated subtargets”. Adding “generated base target” to the mix makes my head spin hehethis is 100% internal though… see the other thread, but afaict the only way it impacts @rule authors is that they might need to decide to “group” targets when invoking. for end users, i think that our goal is “file deps”, and making that externally consistent
witty-crayon-22786
07/23/2020, 5:37 PMwitty-crayon-22786
07/23/2020, 5:38 PMwitty-crayon-22786
07/23/2020, 5:38 PMhundreds-father-404
07/23/2020, 5:38 PMit depends on subtargets, each of which own oneIt depends on subtargets in addition to any other dependencies it has. We lose any distinction between “my own files” vs. “my direct dependencies”
witty-crayon-22786
07/23/2020, 5:39 PM--original--and-direct-dependeeswitty-crayon-22786
07/23/2020, 5:39 PMWe lose any distinction between “my own files” vs. “my direct dependencies”yes, that is true. it would be a bit like both the sources and the dependencies were actually dependencies, but with a different way of declaring them.
hundreds-father-404
07/23/2020, 5:40 PM./pants list f.txtf.txt:example./pants list f.txt:examplewitty-crayon-22786
07/23/2020, 5:41 PMwitty-crayon-22786
07/23/2020, 5:47 PMlist --original