What is your template development workflow? #1930
-
First of all - thank you all for such a wonderful tool! GoalI'm looking for best practices on development workflow. Specifically, how to develop changes to the template in the context of (a) project(s). I'd like to avoid "hope it works" PRs to the template repo. Sincere apologies if this is documented somewhere... closest I could find was copying dirty changes. BackgroundScenario is pretty typical I think:
Once you know that a change to the template is good, it's easy enough to run QuestionsI want to add a feature or refactor something in the template repo, and know it's going to work in a project repo before I PR the change to the template repo. What's the workflow for this? CommentaryIf folks are using this workflow, it seems it would need to go something like this
However the above violates https://copier.readthedocs.io/en/stable/updating/#never-change-the-answers-file-manually so that does not seem like best practice. Perhaps I'm missing some way to update the project repo, overriding the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If you have write access to the remote template repo, you can push the template changes in a feature branch and run |
Beta Was this translation helpful? Give feedback.
-
So, it's not easiest setup, but here's my workflow:
Here's my template: https://github.com/pawamoy/copier-uv. Maybe start by reading |
Beta Was this translation helpful? Give feedback.
If you have write access to the remote template repo, you can push the template changes in a feature branch and run
copier update --vcs-ref feature-branch
in your project repo.