We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a file from the template is in gitignore, this file is created with copier copy but then removed by copier update
copier copy
copier update
I don't expect this file to be removed after an update.
.env copier.yml {{ _copier_conf.answers_file }}.jinja
$ git init && echo ".env" >> .gitignore && git add .gitignore && git commit -m "first" $ copier copy file:///pathtothetemplate/.git . Copying from template version 0.0.0.post10.dev0+a4f9293 identical . create .copier-answers.yml create .env # answer to the questions $ git add .copier-answers.yml && git commit -m "+answers" $ ls .env .env $ copier update # answer to the questions Copying from template version 0.0.0.post10.dev0+a4f9293 identical . identical .copier-answers.yml identical .env $ ls .env error: file not found
No response
after copier copy && git add . && git commit -m"" copier update shoud not change a thing
copier copy && git add . && git commit -m""
I expect to manage gitignored files with copier
Linux
Ubuntu
copier 7.2.0
Python 3.11.2
pip+pypi
Why I gitignore some files ?
I have a setup with two templates, one with answers shared with the team (project structure), and another with answsers not shared (db credentials, user related config...). I make use of https://copier.readthedocs.io/en/stable/configuring/#applying-multiple-templates-to-the-same-subproject
The text was updated successfully, but these errors were encountered:
This bug is still present in copier 8.3.0
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the problem
When a file from the template is in gitignore, this file is created with
copier copy
but then removed bycopier update
I don't expect this file to be removed after an update.
Template
To Reproduce
Logs
No response
Expected behavior
after
copier copy && git add . && git commit -m""
copier update
shoud not change a thingI expect to manage gitignored files with copier
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
Ubuntu
Copier version
copier 7.2.0
Python version
Python 3.11.2
Installation method
pip+pypi
Additional context
Why I gitignore some files ?
I have a setup with two templates, one with answers shared with the team (project structure), and another with answsers not shared (db credentials, user related config...).
I make use of https://copier.readthedocs.io/en/stable/configuring/#applying-multiple-templates-to-the-same-subproject
The text was updated successfully, but these errors were encountered: