-
Notifications
You must be signed in to change notification settings - Fork 91
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
Segfault with libgit2 1.4 #470
Comments
We need to wait for a new cargo release, see rust-lang/cargo#10446. Once that's out, bump |
As a temporary workaround, this does the trick: diff --git a/cargo-crev/Cargo.toml b/cargo-crev/Cargo.toml
index 9025be2..e55592b 100644
--- a/cargo-crev/Cargo.toml
+++ b/cargo-crev/Cargo.toml
@@ -29,8 +29,8 @@ crev-wot = { path = "../crev-wot", version = "^0.23"}
crev-lib = { path = "../crev-lib", version = "^0.23.0"}
anyhow = "1.0.53"
atty = "0.2.14"
-cargo = "0.59.0"
-cargo-platform = "0.1.2"
+cargo = { git = "https://github.com/rust-lang/cargo/" }
+cargo-platform = { git = "https://github.com/rust-lang/cargo/" }
crates_io_api = "0.7.3"
crossbeam = "0.8.1"
chrono = { version = "0.4.19", default-features = false }
@@ -52,7 +52,7 @@ time = "0.3.6"
tokei = "12.1.2"
walkdir = "2.3.2"
openssl-sys = "0.9.65"
-git2 = "0.13.23"
+git2 = "0.14"
tempfile = "3.3.0"
rprompt = "1.0.5"
thiserror = "1.0.30"
diff --git a/crev-lib/Cargo.toml b/crev-lib/Cargo.toml
index 61acb60..3822316 100644
--- a/crev-lib/Cargo.toml
+++ b/crev-lib/Cargo.toml
@@ -22,7 +22,7 @@ crev-recursive-digest = "0.5"
default = "0.1.2"
directories = { version = "2", package = "directories-next" }
fnv = "1.0.7"
-git2 = "0.13.23"
+git2 = "0.14"
log = "0.4.14"
num_cpus = "1.13.0"
resiter = "0.4.0" |
rust-lang/cargo#10446 appears to have been fixed in v0.61.1 |
When using cargo crev (either the released version or git master at 47cd386) on a system with libgit2 1.4.2 (e.g. on Arch Linux), cargo crev segfaults on
cargo crev update
.I think this is due to an ABI incompatibility introduced by libgit2. AFAIK this is fixed with
git2
0.14 and tried to update to it, but it seems that thecargo
crate (even 0.60) still depends on the older libgit2-sys version, so this didn't work.Maybe there's some other possibility of fixing this?
(Someone should really write a libgit2 replacement in pure Rust...)
The text was updated successfully, but these errors were encountered: