Matrix expansion with pinned subpackages
We sometimes have a situation where a package is exactly pinning a subpackage and the pinned subpackage has multiple variants. If the matrix is not the same for the pacakge & subpackage, only one package might be created.
E.g.
conda_build_config.yaml
A:
- 1.0
- 2.0
outputs:
package:
name: x1
dependencies:
run:
- A
package:
name: x2
dependencies:
run:
- {{ pin_subpackage('x1', exact=True) }}
We should either warn or automatically expand the matrix for x2 with all variants of x1.
Nice! Real life example where this has bitten us: https://github.com/conda-forge/bullet-feedstock/pull/45
This is implemented in #249
Referencing some conda-build issues on this: https://github.com/conda/conda-build/issues/3308#issuecomment-446640416
https://github.com/conda/conda-build/issues/4142