-
Notifications
You must be signed in to change notification settings - Fork 342
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
Please upgrade git2 to 0.19.x #4234
Comments
Working on it, #4080. |
Nice. And I searched for libgit2 in issue/pr titles even though I know the relevant crate was git2. Oops. |
Does Arch Linux allow multiple versions of a package with different names, like some distros do for llvm? e.g. The reason I ask isn't to downplay this ticket — actually, libgit2 1.9 has some features that we want — but because there is an underlying tension that won't go away just from fixing this particular bug. I recently made the argument here that realistically speaking, there is no reality in which anything but the version of libgit2 we specifically test and develop against should ever be used or distributed to users. It is very very very important that libgit2 behavior is at the very least consistent and understood. Every dependency has a cost, a risk and a reward, and this is the most critical dependency in the chain for an incredibly critical user-facing feature. Practically speaking, this means we must be responsible for and, in a way, own the behavior of libgit2 — all its faults, its bugs, and its features — even if the developers are literally different group of people. The buck stops with us, in my mind. Looking forward, in the long term we want to e.g. target Debian stable as a common denominator for dependencies — and it's very likely that will lead to cases like this again, where we want to target and use and a version of libgit2 that may be old compared to other distros and they want us to upgrade or something. Or maybe the opposite; we use a version of libgit2 that isn't in Debian, so they have to vendor it. In fact, I may even soon propose to re-vendor libgit2 in the Nixpkgs I think we'll upgrade to libgit2 1.9 soon enough and this won't be a big deal right now. But I'm afraid this kind of issue is going to rear its head again and the next time we do an upgrade. So, talking and thinking about it openly now is a good idea IMO if other maintainers are involved. (Please feel free also to tag-in other Arch/any distro maintainers who may have experience or opinions here!) |
We really need to get push support into Gitoxide so we can benefit from distributions’ more lax policy on Rust crate versions 🫠 (Well, and also just, probably, better backwards compatibility.) |
We might, actually, get some help from the Git team itself: https://lore.kernel.org/git/[email protected]/T/#t |
So is this fixed now? #4080 is merged. |
https://github.com/martinvonz/jj/blob/27d8198fa1a020cd84da490df54a0d8eebd27b9e/Cargo.toml#L52
The current supported dependency is for git2 0.18.x, which is not the latest release and prevents linking against the current version of libgit2 provided by some systems. This is a bit of a problem for Arch Linux packaging. I'll work around it temporarily by vendoring, but this isn't ideal or what is expected our our packages.
The text was updated successfully, but these errors were encountered: