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

What are the needed dependencies? #2007

Open
Stefanuk12 opened this issue Oct 14, 2024 · 1 comment
Open

What are the needed dependencies? #2007

Stefanuk12 opened this issue Oct 14, 2024 · 1 comment

Comments

@Stefanuk12
Copy link

I'm trying to use nodegit on GitHub Actions (ubuntu-latest), but it consistently adds 5 minutes to the workflow because it compiles libgit2 each time. Other than caching, how can I speed up the compile time?

I've tried installing libgit2-dev but it still needs to compile. What dependency can I install on apt to make it so that it doesn't need to compile git2 again?

@sin-ack
Copy link

sin-ack commented Nov 21, 2024

libgit2 will be compiled regardless of what your system contains because it's vendored: https://github.com/nodegit/nodegit/tree/master/vendor

Besides, libgit2 is rather quick to compile; Nodegit includes its own binding code in C++, which is the majority of the compilation time. So caching is the only possible way to avoid a recompile unless Nodegit finds an existing artifact to download (I think this is available on released versions, but 0.27.0 is broken for me so I can't really check).

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

2 participants