Is there a way to depend on all the parameterizati...
# general
p
Is there a way to depend on all the parameterizations of a target? The docs show how this is allowed in CLI specs:
Copy code
Generally, you can use the address without the @ suffix as an alias to all the parametrized targets. For example, pants test example:tests will run all the targets in parallel.
It does not seem to work for dependencies though. Is there a simple way to depend on all parameterizations?
1
e
What type of target are we talking about here? Most of the cases I can think of would not work to depend on all parameterizations (eg. a python file would have ambiguous import statements if it depended on multiple parameterizations of another python source file) I'd like to understand your use case a bit better
p
An
nfpm_deb_package
or an
nfpm_rpm_package
that depends on all parametrizations of an
nfpm_content_file
target.
I ended up adding a helper function to add all of the parametrizations as deps: https://github.com/StackStorm/st2/pull/6328/files#diff-753e9a6362871a3766861740a74f4cedd1957eec57e85375325e0c1b6d87266f
👍 1