Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nested conditionnal selectors in v2 recipe #2109

Open
olivier-roussel opened this issue Oct 30, 2024 · 0 comments
Open

Support for nested conditionnal selectors in v2 recipe #2109

olivier-roussel opened this issue Oct 30, 2024 · 0 comments
Labels

Comments

@olivier-roussel
Copy link

Comment:

I recently faced some cases where it seemed relevant and more readable to use nested it / then / else in new recipe (rattler) format, instead of one-lining the expression. See here for a concrete case : https://github.com/conda-forge/eigenpy-feedstock/blob/5f141210cc57dc0c8cfbe9db4d7e59c3cd3f6347/recipe/recipe.yaml#L36-L48
It seems that rattler build supports such nested selectors, but conda smithy does not.
Here a simpler reproducible example that fails with conda smithy linter:

  - if: arm64
    then:
      - if: linux
        then: 
          - foo
    else:
      - notfoo

I guess the first question raised here before going further is: should it be supported in the new recipe v2 standard ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant