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

Replace degit with giget so that create package doesn't depend on Git being installed locally #464

Closed
chrispcampbell opened this issue Apr 19, 2024 · 1 comment · Fixed by #467 or #466

Comments

@chrispcampbell
Copy link
Contributor

There have been a couple more new users (on Windows) that have run into the issue described in #389 because they didn't already have Git installed on their machine. It looks like the create-astro package (which I used for inspiration for @sdeverywhere/create) started using the giget package as a replacement for degit. The giget package doesn't depend on Git being installed locally, and it is more likely to be maintained in the future than degit.

Instead of pursuing the error message and documentation changes in #389, I propose replacing degit with giget, which should offer the same functionality without the user having to worry about having Git installed locally.

@chrispcampbell
Copy link
Contributor Author

Looks like giget works as advertised.


Here's the success case:

image

Here's what the error message looks like if the URL is invalid or the template can't be downloaded:

image

Here's what the error message will look like if for some reason giget fails without reporting an error:

image

I also updated the "init git repo" step so that it fails more gracefully if Git is not installed locally:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment