conda-build script lines containing # break if selectors are also present on line #5618
Open
2 tasks done
Labels
type::bug
describes erroneous operation, use severity::* to classify the type
Checklist
What happened?
In conda-build
v25.1.2
, if a command is given in anoutput[].build.script
that contains a#
as part of the syntax and there is a selector on that line, then the first#
is treated as a terminating comment and all characters following it are ignored in the render of the YAML.Example:
gets parsed and rendered as
Attempting to escape the entire command by placing it in quotes
results in a
yaml.parser.ParserError
It was pointed out by @jaimergp that this is due to the selector regex of
conda-build/conda_build/metadata.py
Lines 251 to 260 in e5b060e
Context: I've only used conda-build from the context of running conda-forge's
build-locally.py
scripts in feedstocks.Conda Info
Conda Config
Conda list
Additional Context
This was first encounted while working on conda-forge/mg5amcnlo-feedstock#6.
The text was updated successfully, but these errors were encountered: