boa icon indicating copy to clipboard operation
boa copied to clipboard

Matrix expansion with pinned subpackages

Open wolfv opened this issue 3 years ago • 2 comments

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.

wolfv avatar Jan 28 '22 19:01 wolfv

Nice! Real life example where this has bitten us: https://github.com/conda-forge/bullet-feedstock/pull/45

Tobias-Fischer avatar Jan 28 '22 20:01 Tobias-Fischer

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

wolfv avatar Feb 28 '22 18:02 wolfv