Enable make template
to be run without upgrading to the latest version of the template
#73
Labels
enhancement
New feature or request
There are two reasons to run
make template
:cookiecutter.json
file (for example: the Python versions) and you want to apply that changeCurrently if a project isn't up to date with the latest cookiecutter and you've changed something in
cookiecutter.json
and want to apply it you can't do that without also applying the changes from the cookiecutter:make template
will both apply the changes you've made incookiecutter.json
(e.g. changing the Python versions) and apply the changes from the cookiecutter at once.It would be nice if the project's current version of the cookiecutter (commit SHA) were saved in
cookiecutter.json
andmake template
used that version of the cookiecutter instead of the latest. Then you could make changes tocookiecutter.json
and runmake template
to apply them without also upgrading the project to the latest version of the cookiecutter.make template args=upgrade
could be used to upgrade to the latest cookiecutter.make template
already has some of what we'd need to implement this. You can optionally put a"checkout"
setting incookiecutter.json
andmake template
will pass it to cookiecutter'scheckout
option. Currently"checkout"
incookiecutter.json
isnull
by default. We'd need to make it put in the SHA of the cookiecutter commit that was used instead.The text was updated successfully, but these errors were encountered: