Copier update
Describe the problem
Hello, I have created a copier template where the answer file has a custom name (.copier-answers.python-project.yml). When I call the template to update it tells me that it has been done correctly but I can't see the changes in the project. This was working in February, but now it has stopped updating, without showing any error. It has also been tried with the default name (.copier-answers.yml) and the same thing happens. We don't know what this is due to, as a month ago everything was working correctly. Thank you very much for your help.
Template
_answers_file: .copier-answers.python-project.yml
To Reproduce
No response
Logs
Expected behavior
To update the values in the repository of the project using the copier template
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
Ubuntu 22.04
Copier version
copier 9.6.0
Python version
Python 3.11.8
Installation method
pipx+pypi
Additional context
No response
Hello @mvsandoica, thanks for the report 🙂
At first glance, it looks like you do not provide enough information for us to confirm the issue, let alone fix it. Could you try to provide a minimal reproduction example? With the default name for the answers file, since you mention the issue happens with it too.
We would like to know if you know of any internal bug that could have happened in the copier repository so that the updates are not performed in the project when a ‘copier update’ is performed. Since our template was working correctly a month ago and without making any changes, it has stopped working (the values of the different arguments are not updated) but no error is generated to indicate the failure.
We would like to know if you know of any internal bug that could have happened in the copier repository so that the updates are not performed in the project when a ‘copier update’ is performed.
No such bug to my knowledge.
I'm experiencing a similar bug, but even without the custom file. The minimal example from the docs doesn't ever create a .copier-answers.yml file. I've tried most combinations of arguments, specifying the answers file directly, creating the answers file then updating, etc. Nothing seems to be working as expected.
Installed via pipx:
% which copier
/Users/<username>/.local/bin/copier
% copier --version
copier 9.8.0
@frankieeder Could you provide a reproducible example please?
@frankieeder Could you provide a reproducible example please?
Rereading the docs, it seems I was missing adding the {{_copier_conf.answers_file}}.jinja file. Please disregard, though it may be related to the above issue (if that behavior changed from an earlier version).