Replies: 1 comment 4 replies
-
Sorry, that use case is not supported. 🫤 You can only decide between including updates for a file or not. The hooks you ask for also don't exist AFAICR. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to have a templated file which can be "taken over" by the subproject user, and a corresponding example file which starts out the same. By "taken over" I mean that if any modification was made by the user, then any furher changes in the template file will be ignored, but as long as the file has not been modified in the subproject, it will be updated as normal. The reason for this is an automated update of subprojects where there is nobody to handle merge conflicts.
The example file will (should) never be modified in the subproject, so it will never cause conflicts.
I would like to avoid having two source files in the template which must be kept the same.
I thought I could achieve this with migration tasks and have been looking at https://copier.readthedocs.io/en/latest/updating/#how-the-update-works. However it seems impossible to copy the expanded templates before merge.
It seems that I would need a migration task call somehere in the middle of the large box?
Are the paths to the tmp directories exposed to tasks?
Beta Was this translation helpful? Give feedback.
All reactions