-
Hey! We moved our templates to a new location - everything about the template is the same except for the git repo location. The templates in the old location still exist - is it safe to assume that the best way to tell the existing projects that there's a new location for the templates (in an automated fashion) is via migrations? Has this use case been covered by copier? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I don't think the "template does not exist anymore" case is covered. Maybe if the old location redirected to the new one, Copier could detect it (I'm not sure if it's Git or GitHub that notifies it) and update the location in the answers file 🤔 |
Beta Was this translation helpful? Give feedback.
-
When you rename a repo, github and gitlab will create a redirection for it. In general terms, Git will follow that redirection, and Copier will use Git, so it will follow it too. If I were you, I'd add a migration, yes. |
Beta Was this translation helpful? Give feedback.
When you rename a repo, github and gitlab will create a redirection for it. In general terms, Git will follow that redirection, and Copier will use Git, so it will follow it too.
If I were you, I'd add a migration, yes.