Closed pbauer closed 6 months ago
This is still a problem with 2.5.0 as well. So I do not know why you use the JSON syntax in YAML, but even this should work. As of cookiecutter 2.2.0 the repetition of the default should not be needed too.
So, I tried with
# ...
environment:
PTS_LANGUAGES: 'de'
zope_i18n_allowed_languages: 'de'
# ...
with the same result:
<environment>
CHAMELEON_CACHE instance/var/cache
zope_i18n_compile_mo_files true
</environment>
cc @ericof do you have any clue?
It is a regression in cookiecutter, see https://github.com/cookiecutter/cookiecutter/issues/2009
Thanks for working on that!
fixed and released in cookiecutter 2.6.0
Not sure what else is broken but at least setting
environment
does not work if a version later thancookiecutter==2.1.1
is used.To reproduce: Use a simple
instance.yaml
:After
./bin/pip install cookiecutter==2.5.0
and./bin/cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance
I get ainstance/etc/zope.conf
which has the debug-mode but is missing the environment settings:After
./bin/pip install cookiecutter==2.1.1
and./bin/cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance
I get the followinginstance/etc/zope.conf
which is fine: