There's currently (2.16) no way that I can tell to...
# plugins
f
There's currently (2.16) no way that I can tell to produce
UnexpandedTargets
from an arbitrary list of targets. Would it be possible to reproduce that with a rule? Say by finding target owners and deduplicating? Context: I'm trying to hack to combine
peek
and
dependees --closed --transitive
into a single goal
c
in a rule you should be able to do:
Copy code
await Get(UnexpandedTargets, Addresses([t.address for t in targets]))
or did I get your question wrong..? 😬
f
you can? I just took this output as meaning the rule was only available as an intrinsic
Copy code
❯ pants help-advanced UnexpandedTargets

`pants.engine.target.UnexpandedTargets` api type
------------------------------------------------

Like `Targets`, but will not replace target generators with their generated targets (e.g.
replace `python_sources` "BUILD targets" with generated `python_source` "file targets").

activated by       : pants.engine.target
dependencies       : 
dependents         : internal_plugins.component_specs
                     pants.backend.project_info
                     pants.backend.python
                     pants.core
returned by 0 rules: 
consumed by 2 rules: pants.backend.project_info.peek.get_target_data
                     pants.backend.project_info.peek.peek
used in 7 rules    : internal_plugins.component_specs.source_file_trimmer.addresses_to_source_files
                     pants.backend.project_info.dependencies.dependencies
                     pants.backend.project_info.filedeps.file_deps
                     pants.backend.project_info.list_targets.list_targets
                     pants.backend.project_info.peek.peek
                     pants.backend.python.goals.tailor.find_putative_targets
                     pants.core.goals.tailor.restrict_conflicting_sources
specifically
returned by 0 rules:
👀 1
that does work
👍 1
c