plone / cookiecutter-zope-instance

It bakes configuration for Zope 5
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

`environment_paths` can not be customized #23

Open mliebischer opened 2 weeks ago

mliebischer commented 2 weeks ago

Maybe I'm just too stupid, but how can I specify a variable other than CHAMELEON_CACHE in environment_paths?

Example: image

Command:

cookiecutter -f --no-input --config-file instance.yaml https://github.com/plone/cookiecutter-zope-instance --checkout 2.1.0

Output:

UserWarning: Invalid default received: ['TEST', 'CHAMELEON_CACHE'] provided 
for multi-choice variable environment_paths, but valid choices are ['CHAMELEON_CACHE']

image

Seems like CHAMELEON_CACHE is only allowed value, see cookiecutter.json

Compare this with db_blobs_mode, which also only has a few allowed values.

Tested with v2.1.0

jensens commented 2 weeks ago

This should be fixed in cookiecutter 2.6.0, which includes the fix of https://github.com/cookiecutter/cookiecutter/issues/2009 see also #15