-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
linter cannot parse jinja conditionals #2169
Comments
Looks like there are no plans to address this bug, which I think means conda-recipe-manager is probably not appropriate to be used in conda-smithy and we should probably be looking elsewhere for recipe parsing, since this wasn't a problem before. |
Would it be workable to use selectors instead? E.g. |
selector syntax does not appear to work, I think because When we can switch to recipe.yaml, we'll have the much nicer |
Ah, ok, sorry, I wasn't aware of the fact that this is a derived value. If you really wanted to, you could do arbitrary python stuff in the selectors and maybe get it to work, but not sure if that makes sense (e.g. |
Yeah. Need to also handle the non-integer cuda version 'None', too, so it gets a bit messy, but I imagine it could be done. I think I'll just stick with the jinja that's far simpler and clearer than the selectors and already works great in meta.yaml until we move to v1 recipe.yaml (version bump / migrator bot support is the only thing blocking me from doing this more broadly, I think). |
Solution to issue cannot be found in the documentation.
Issue
petsc is failing to lint because of conda-incubator/conda-recipe-manager#258 which cannot handle
{% if ...
branches, or jinja syntax in general, it seems.fails to parse with:
or
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: