-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Migrate wp-env to use simple-git instead of nodegit #26660
Comments
It might also work if we upgrade to the latest version of https://github.com/nodegit/nodegit/releases/tag/v0.27.0
|
I'm not sure how important it is or not, but it looks like converting to simple-git will lose the progress indicator when cloning the repo. The current NodeGit provides a callback with progress, simple-git does not have that feature. With the upgrade in #26712 this issue is fairly low priority, I think it would lighten the overall package, so probably still worth doing. |
I see this issue in It isn't impossible but this would require some time investment to refactor. I'm wondering how much time it takes to install each library and what is the size difference on the disk. Maybe it's fine to keep |
I agree that it's probably not a big issue for us. One nice thing is that wp-env can be used outside of Gutenberg, so it might not be safe to assume git is available. (Though to be fair, I do agree it's very likely available most places.) |
I'm thinking we should get this done. When installing via But yeah, I agree that simple git would be simpler (ha) for us to maintain. |
Here's one more reason to migrate to
|
As for the progress meter, there's another upstream issue which seems to have more information (and a recipe?): steveukx/git-js#529 |
nice. I also don't think that progress should block this move 😅 Btw, I did start poking around at switching, but never pushed the branch. I'll see if I can find it today :) |
Here's what I started a couple weeks ago: #28804. I didn't make a ton of progress, but I think it at least will clone the repo. Needs a lot of polished around other cases though. I don't know how much time I have to continue working on it in the next week, but feel free to continue with it if you have time ;) |
With the new LTS upgrade (14.15.0), the
nodegit
prebuilt binary is not yet available and requires being built from source. This is an extra complication to require everyone using wp-env to have all the dependencies installed.This also highlighted that we probably don't need all the features of
nodegit
and could probably switch over to usesimple-git
that does have a requirement that git be installed locally, but that is safe tto assume and require for the project, since you need git to check out the project.The text was updated successfully, but these errors were encountered: