Open jjhelmus opened 1 month ago
I saw this error in the about/description
section of the meta.yaml
, where inside the string was a substring [repack of MINGW-packages libidn2 for UCRT64]
. conda-build
thinks that it's a selector, not a part of the YAML string.
It can be fixed manually by replacing square brackets with round brackets. But yeah, it's a conda-build
bug.
Checklist
What happened?
Because of the regex used by conda-build, selectors will be detected in locations where users would likely not expect them to be.
Some examples:
(combining these last two lines or adding a comma results in a working recipe)
and
Both of these recipes will fail to build because the selector is invalid:
For clarity a selector will be detected on any line where
[...]
at the end of the line (after removing whitespace).[...]
after a comment#
.I suspect this issue has been in conda-build for so long that is cannot be nicely addressed without breaking backwards compatibility. I would be happy to see this issue marked as wont-fix.
Similar issues have been reported in the past but are now closed. For example #4654.
Conda Info
Conda Config
Conda list
Additional Context
No response