-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
1.6.2: git_odb_open symbol was removed #6519
Comments
Ugh. Yes, that's a bug. Thanks for reporting it.
What's the problem with this? That it's a different API is by design. If you want experimental SHA256 support, the entire API has changed. That's why it's opt-in. This will eventually be the new API for libgit2 v2.0 once it's complete and working. 😓 |
Sorry, I'm just used to "once you publish a function prototype, it's fixed forever". |
Yeah, it's unfortunate. We could do some terrible bisection of the APIs to try to avoid breakage. But I'd like to see people suggesting that it's necessary or useful before I commit to that. (This serves as a datapoint. 😄) |
To expand on that - my thinking is that most people are not using libgit2, they're using LibGit2Sharp, rugged, nodegit, etc. and one of those needing to change once is not too onerous. It will be interesting to see the delta between the APIs when SHA256 is in a usable state. Maybe we can just slap an |
Apologies again for the oversight - I missed this during refactoring. Should be fixed by #6520. Since this is the second symbol we missed, I did diff the exported symbol names between 1.5 and 1.6 and this was the only other one. 😓 |
Thanks for the fix, and for checking all symbols! Good idea :) |
keep the pkg-config file fix, bump PKGREVISION for that Wait for libgit2/libgit2#6519 and rust-lang/git2-rs#936 before upgrading.
git_odb_open is missing in the 1.6.2 release. It was there in 1.5.1.
In 1.5.1:
In 1.6.2:
It's still in the header file:
(though there will be a signature change when
GIT_EXPERIMENTAL_SHA256
is enabled, which is a different problem).Since this was not mentioned in the release notes for 1.6.0, 1.6.1, nor 1.6.2 and the prototype is still in the header, I guess this is an oversight.
The text was updated successfully, but these errors were encountered: