Closed zkamvar closed 3 years ago
The fix looks good to me. It might be slightly better to set config['life_cycle']
and then return it just in case we want to catch this edge case somewhere else.
if 'life_cycle' not in config:
config['life_cycle'] = None
return config['life_cycle']
Thank you! I made the change and will merge once the checks pass.
There was an issue with make lesson-check on the core lessons that didn't have the life_cycle parameter set. This PR fixes the issue by allowing
life_cycle
to be missing in the _config.yaml (which is standard for core lessons).Notably, this was not caught in our earlier checks because our github workflow only tested if the sites could be built, but never checked their validity.
This will fix https://github.com/carpentries/styles/issues/556