Replies: 2 comments
-
The
However, there are some corner cases where the update will not work as expected. I'm planning on improving/fixing that. But first, I'll need to discuss a few behaviors with the upstream project (copier). Regarding functions defined in the
Maybe for builtins, this should not be separated too? But then is the question of testing and packaging the implementation for fastapi-mvc. Do you have any suggestions on this? Lastly, any generator can be updated with the changes from the upstream (copier-generator), example: But this action will not update/override your template and its configuration but rather generators common files like dotfiles, environment definition, etc. I've tested this recently, and it works well. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I think it comes down to having the base template and generators modifying the same files. There should be a way to create an intermittent template and supplement with the updated generator template., You might need to keep track of the order the generators were applied. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The reason I ask since they depend on functions that are defined in the
Generator
class, for example,fastapi-mvc/fastapi_mvc/core.py
Line 321 in 0238763
Shouldn't this live in the controller template itself? Also, it is unclear to me if the
fastapi-mvc update
will run the generators updates too.Beta Was this translation helpful? Give feedback.
All reactions