-
Notifications
You must be signed in to change notification settings - Fork 401
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
Update libgit2 to latest master. #440
Conversation
This switches to the CollisionDetection SHA1 implementation for all platforms regardless if the `https` feature is enabled. This is the default behavior of libgit2 now. Also, the windows sha1 implementation doesn't seem to compile anymore.
Let me know if you have any questions, I have some notes on some of the changes. I switched the SHA1 implementation because the Windows HTTPS version seems to be broken. "CollisionDetection" is the default now on libgit2, so I imagine it's probably good enough? Let me know if there is a better way to handle the settings for the PCRE stuff. I couldn't find a way to tell the |
// Ideally these defines would be specific to the pcre files (or placed in | ||
// a config.h), but since libgit2 already has a config.h used for other | ||
// reasons, just define on the command-line for everything. Perhaps there | ||
// is some way with cc to have different instructions per-file? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically the way to go for this is to just use multiple cc::Build
instances, but it's probably fine to do the same config for all of libgit2
Following upstream for defaults sounds reasonable to me! Did the regex backend get dropped in favor of a pcre2 dependency? It'd be sort of neat if we could patch in the |
Yes, here's the PR: libgit2/libgit2#4935 It looks like they were having some issues with the old glibc implementation.
It's kind hard for me to wrap my head around how linking would work for that. Presumably you'd have something that had
A few places:
|
Ok that all sounds good to me! Thanks again for taking this on! As for how it'd use the |
No description provided.