Skip to content
New issue

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

Can degit handle template upgrading? #351

Open
martin-braun opened this issue Aug 30, 2022 · 2 comments
Open

Can degit handle template upgrading? #351

martin-braun opened this issue Aug 30, 2022 · 2 comments

Comments

@martin-braun
Copy link

martin-braun commented Aug 30, 2022

degit peeks my interest, because I can provide a git repository as template with no headache. I very much adore the fact that the user doesn't have to download the entire repository this way, but what about upgrading my template?

Say I bumped a lot of dependencies in my template. I might also changed the ground structure of my project scaffold slightly.

After a while a user decides to upgrade the template to get the latest nitty-gritty that my template offers. Ideally their way of doing this is just calling degit again. The hard part is that it must not overwrite files that have been changed, but produce the same merge-conflict output that git itself would give if I would try to pull from the upstream with rebase.

Since degit stores the previous download of the template with its hash in the user directory, it would use the old version to compare the files. It would also maintain a local database to know what template-hash the current project is using.

Have there ever been any thoughts about this? Are there plans or even existing solutions to the problem?

@zyyv
Copy link

zyyv commented Sep 16, 2022

Have the same issue.

@Fred-Vatin
Copy link

I had a similar question. How degit handle conflict ? Does it overwrite existing files ? Skip ? Merge ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants