Closed baszalmstra closed 1 month ago
I think the configuration file "closest" to the recipe should win, but I am not sure what to do when we add variant files from the CLI as well ... e.g. -m variant.yaml
. Should we then ignore them, and add another flag (--use-variant-next-to-recipe
)?
Or with a glob somehow --variant */variant.yaml
, but only use the globs that also match the recipe prefix ...
Personally Im more inclined to make this the default behavior and have the option to opt out instead.
Personally Im more inclined to make this the default behavior and have the option to opt out instead.
Perhaps a --ignore-recipe-variants
flag? (I hate more flags)
yes, flag works for me!
This PR adds reading from a
variants.yaml
file next to therecipe.yaml
file without having to specify a config file on the command line.This is especially useful when using the
--recipe-dir
option.Some questions:
variants.yaml
file is always included. Is that what we want?Do not merge, I need to add tests.
Fixes #974