witty-crayon-22786
08/06/2020, 5:16 PMpants.backend.python.rules.run_setup_py.AmbiguousOwnerError: Exporting owners for src/python/foo/resources/js/code.js:../resources are ambiguous. Found src/python/foo/foo.py and 1 others: src/python/foo/__init__.py
witty-crayon-22786
08/06/2020, 5:17 PMwitty-crayon-22786
08/06/2020, 5:17 PMhappy-kitchen-89482
08/06/2020, 5:19 PMprovides=
copied to them?witty-crayon-22786
08/06/2020, 5:20 PMwitty-crayon-22786
08/06/2020, 5:23 PMTargets
are now always expanded into per-file targets, and the base targets are filtered out. meaning that you wonât observe the base targets.witty-crayon-22786
08/06/2020, 5:23 PMUnexpandedTargets
contains only the base targets, and no subtargetswitty-crayon-22786
08/06/2020, 5:24 PMwitty-crayon-22786
08/06/2020, 5:25 PMTransitiveTargets
contains expanded per-file targets.)witty-crayon-22786
08/06/2020, 5:26 PMwitty-crayon-22786
08/06/2020, 5:26 PMhappy-kitchen-89482
08/06/2020, 5:27 PMwitty-crayon-22786
08/06/2020, 5:27 PM./pants test src/python/pants/backend/python/rules/run_setup_py_test.py
in https://github.com/pantsbuild/pants/pull/10511witty-crayon-22786
08/06/2020, 5:28 PMhappy-kitchen-89482
08/06/2020, 5:47 PMwitty-crayon-22786
08/06/2020, 5:49 PMwitty-crayon-22786
08/06/2020, 5:50 PMwitty-crayon-22786
08/06/2020, 5:51 PMprovides=
, or by the base address/target (target.address.maybe_convert_to_base_target()
, which actually gives you back the address of the base target)happy-kitchen-89482
08/06/2020, 5:51 PMwitty-crayon-22786
08/06/2020, 5:52 PMspec_path
is the location containing the target definitionwitty-crayon-22786
08/06/2020, 5:52 PMhappy-kitchen-89482
08/06/2020, 5:53 PMhappy-kitchen-89482
08/06/2020, 5:54 PMspec_path
on the subtarget is the dir of the original target, then we're fine, but is that always the case, even if the files in that target were several levels below the target?witty-crayon-22786
08/06/2020, 5:54 PMhappy-kitchen-89482
08/06/2020, 5:55 PMwitty-crayon-22786
08/06/2020, 5:55 PMhundreds-father-404
08/06/2020, 5:56 PMsetup-py
should use solely UnexpandedTargets
and/or addr.maybe_convert_to_base_target()
witty-crayon-22786
08/06/2020, 5:58 PMTransitiveTargets
right near where this test fails, so weâd possibly need to expose UnexpandedTransitiveTargets
.witty-crayon-22786
08/06/2020, 5:59 PMhundreds-father-404
08/06/2020, 6:02 PMso weâd possibly need to expose UnexpandedTransitiveTargetsThis would allow us to resolve the concern I have about
filedeps --transitive --globs
happy-kitchen-89482
08/06/2020, 6:38 PMwitty-crayon-22786
08/06/2020, 6:38 PMwitty-crayon-22786
08/06/2020, 6:38 PMhappy-kitchen-89482
08/06/2020, 6:39 PMwitty-crayon-22786
08/06/2020, 6:39 PMhundreds-father-404
08/06/2020, 6:42 PMhundreds-father-404
08/06/2020, 6:42 PMwitty-crayon-22786
08/06/2020, 6:47 PMwitty-crayon-22786
08/06/2020, 6:47 PMwitty-crayon-22786
08/06/2020, 7:56 PMwitty-crayon-22786
08/06/2020, 9:06 PMhappy-kitchen-89482
08/06/2020, 9:16 PMwitty-crayon-22786
08/06/2020, 10:09 PMhappy-kitchen-89482
08/06/2020, 10:09 PMhappy-kitchen-89482
08/06/2020, 11:09 PMhappy-kitchen-89482
08/06/2020, 11:10 PMrun_setup_py.py
!happy-kitchen-89482
08/06/2020, 11:11 PMExportedTarget
to be a PythonDistribution
, but I don't see much need, since the target API is field-centric anyway. The fact that run_setup_py.py
needed no changes is a strength, not a weakness!witty-crayon-22786
08/06/2020, 11:20 PMwitty-crayon-22786
08/06/2020, 11:21 PMhappy-kitchen-89482
08/06/2020, 11:34 PMrun_setup_py.py
itself, so that we do the right thing if there are 3rdparty requirements in the python_distribution itself's dependencieshundreds-father-404
08/06/2020, 11:36 PMsources
for a PythonDistribution
, so it wonât ever convert into a generataed subtargethappy-kitchen-89482
08/06/2020, 11:54 PMhappy-kitchen-89482
08/06/2020, 11:59 PMhappy-kitchen-89482
08/07/2020, 12:00 AMUnmatched glob
check, did that get stricter?witty-crayon-22786
08/07/2020, 12:00 AMhappy-kitchen-89482
08/07/2020, 12:01 AMhappy-kitchen-89482
08/07/2020, 12:01 AMhappy-kitchen-89482
08/07/2020, 12:04 AMwitty-crayon-22786
08/07/2020, 12:04 AMhappy-kitchen-89482
08/07/2020, 12:04 AMhappy-kitchen-89482
08/07/2020, 12:05 AMhappy-kitchen-89482
08/07/2020, 12:05 AMhappy-kitchen-89482
08/07/2020, 12:05 AMhappy-kitchen-89482
08/07/2020, 12:06 AMwitty-crayon-22786
08/07/2020, 12:06 AM