Repository navigation
Description
Describe the bug
Installing GitUI from crates.io with cargo install gitui fails while compiling asyncgit v0.28.1. The build reports type mismatches because asyncgit and git2-hooks use different versions of git2 (git2 v0.20.4 and git2 v0.21.0). Types such as git2::Repository and git2::Oid from those versions are incompatible.
To Reproduce
Steps to reproduce the behavior:
- Run
cargo install gitui. - Wait for Cargo to download and compile the dependencies.
- See the
E0308type mismatch errors while compilingasyncgit v0.28.1insrc/sync/hooks.rs.
Expected behavior
cargo install gitui compiles and installs GitUI successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Context (please complete the following information):
- OS/Distro + Version: Arch Linux on WSL (as indicated by the shell prompt)
- GitUI Version 0.28.1
- Rust version: Not provided
Additional context
The compiler output identifies two git2 versions in the dependency graph:
git2 v0.20.4, whoseRepositoryandOidtypes are passed fromasyncgitgit2 v0.21.0, whose types are expected bygit2-hooks v0.7.0
This causes type errors in calls to git2_hooks::hooks_commit_msg, hooks_pre_commit, hooks_post_commit, hooks_prepare_commit_msg, hook_available, and hooks_pre_push, as well as PrePushRef::new.
The failure occurs when installing the published crate from crates.io; the command used was cargo install gitui.
[wsluser@wslarch nvim]$ cargo install gitui Updating crates.io index Downloaded gitui v0.28.1 Downloaded 1 crate (3.0MiB) in 2.23s Installing gitui v0.28.1 Updating crates.io index Locking 417 packages to latest compatible versions Adding base64 v0.22.1 (available: v0.23.1) Adding bugreport v0.5.1 (available: v0.6.0) Adding crossterm v0.28.1 (available: v0.29.0) Adding dirs v6.0.0 (available: v7.0.0) Adding easy-cast v0.5.5 (available: v0.7.1) Adding generic-array v0.14.7 (available: v0.14.9) Adding itertools v0.14.0 (available: v0.15.0) Adding parking_lot_core v0.9.12 (available: v0.10.0) Adding ratatui v0.29.0 (available: v0.30.2) Adding struct-patch v0.10.5 (available: v0.14.4) Adding two-face v0.4.5 (available: v0.5.2+bat-0.26.1) Adding unicode-truncate v2.0.1 (available: v3.0.0) Adding unicode-width v0.2.0 (available: v0.2.3) Downloaded addr2line v0.27.1 Downloaded adler2 v2.0.1 Downloaded aead v0.5.2 Downloaded base64 v0.22.1 Downloaded arrayvec v0.7.8 Downloaded base64ct v1.8.3 Downloaded base16ct v0.2.0 Downloaded arc-swap v1.9.3 Downloaded bcrypt-pbkdf v0.10.0 Downloaded backtrace v0.3.77 Downloaded base64 v0.23.1 Downloaded block-padding v0.3.3 Downloaded hash32 v0.3.1 Downloaded lazy_static v1.5.1 Downloaded aes v0.8.4 Downloaded gix-utils v0.3.6 Downloaded inotify-sys v0.1.8 Downloaded jiff-static v0.2.39 Downloaded inout v0.1.4 Downloaded gix-validate v0.11.4 Downloaded crypto-common v0.1.7 Downloaded idna_adapter v1.2.2 Downloaded gix-chunk v0.5.0 Downloaded defmt-parser v1.1.0 Downloaded form_urlencoded v1.2.2 Downloaded rfc6979 v0.4.0 Downloaded shell-escape v0.1.5 Downloaded gix-bitmap v0.2.16 Downloaded git-version-macro v0.3.9 Downloaded rand_chacha v0.3.1 Downloaded cpufeatures v0.2.17 Downloaded bit-set v0.8.0 Downloaded shell-words v1.1.1 Downloaded filetreelist v0.6.0 Downloaded sha1 v0.10.7 Downloaded num-iter v0.1.46 Downloaded same-file v1.0.6 Downloaded potential_utf v0.1.6 Downloaded block-buffer v0.10.4 Downloaded signature v2.2.0 Downloaded multiversion_no_op v1.0.0 Downloaded scopetime v0.1.2 Downloaded opaque-debug v0.3.1 Downloaded percent-encoding v2.3.2 Downloaded ghash v0.5.1 Downloaded curve25519-dalek-derive v0.1.1 Downloaded git-version v0.3.9 Downloaded bytesize v2.7.0 Downloaded bit-vec v0.8.0 Downloaded defmt v0.3.101 Downloaded group v0.13.0 Downloaded gix-url v0.35.3 Downloaded inotify v0.11.5 Downloaded strum v0.26.3 Downloaded typeid v1.0.3 Downloaded unicode-truncate v1.1.0 Downloaded utf8_iter v1.1.0 Downloaded gix-glob v0.24.0 Downloaded gix-sec v0.13.3 Downloaded byteorder v1.5.0 Downloaded zerofrom v0.1.8 Downloaded zerofrom-derive v0.1.8 Downloaded defmt-macros v1.2.0 Downloaded digest v0.10.7 Downloaded ctr v0.9.2 Downloaded ed25519 v2.2.3 Downloaded generic-array v0.14.7 Downloaded foldhash v0.1.5 Downloaded version_check v0.9.5 Downloaded cipher v0.4.4 Downloaded crossbeam-deque v0.8.8 Downloaded gix-attributes v0.30.1 Downloaded blowfish v0.9.1 Downloaded notify-types v2.2.0 Downloaded pbkdf2 v0.12.2 Downloaded phf v0.14.0 Downloaded chacha20 v0.9.1 Downloaded filetime v0.2.29 Downloaded gix-command v0.7.1 Downloaded phf_shared v0.14.0 Downloaded displaydoc v0.2.7 Downloaded gix-date v0.13.0 Downloaded bugreport v0.5.1 Downloaded dirs v6.0.0 Downloaded fastrand v2.5.0 Downloaded ff v0.13.1 Downloaded find-msvc-tools v0.1.15 Downloaded polyval v0.6.2 Downloaded ppv-lite86 v0.2.21 Downloaded primeorder v0.13.6 Downloaded shellexpand v3.1.2 Downloaded maybe-async v0.2.11 Downloaded rand_core v0.6.4 Downloaded shlex v2.0.1 Downloaded clru v0.6.3 Downloaded openssl-probe v0.1.6 Downloaded bitflags v1.3.2 Downloaded ecdsa v0.16.9 Downloaded bincode v1.3.3 Downloaded sec1 v0.7.3 Downloaded lru v0.12.5 Downloaded paste v1.0.15 Downloaded sha2 v0.10.9 Downloaded siphasher v1.0.4 Downloaded pkcs8 v0.10.2 Downloaded pkg-config v0.3.34 Downloaded stable_deref_trait v1.2.1 Downloaded pem-rfc7468 v0.7.0 Downloaded uluru v3.1.0 Downloaded core_detect v1.0.0 Downloaded cbc v0.1.2 Downloaded gix-shallow v0.8.1 Downloaded ssh-cipher v0.2.0 Downloaded gix-commitgraph v0.32.0 Downloaded yoke-derive v0.8.4 Downloaded cassowary v0.3.0 Downloaded fuzzy-matcher v0.3.7 Downloaded hmac v0.12.1 Downloaded iana-time-zone v0.1.65 Downloaded gix-traverse v0.52.0 Downloaded tinystr v0.8.5 Downloaded jobserver v0.1.35 Downloaded writeable v0.6.4 Downloaded subtle v2.6.1 Downloaded gix-hashtable v0.12.0 Downloaded gix-config-value v0.17.2 Downloaded synstructure v0.14.0 Downloaded gix-actor v0.38.0 Downloaded notify-debouncer-mini v0.7.0 Downloaded gix-ignore v0.19.1 Downloaded strum_macros v0.26.4 Downloaded ssh-encoding v0.2.0 Downloaded thread_local v1.1.10 Downloaded crossbeam-utils v0.8.23 Downloaded pkcs1 v0.7.5 Downloaded litemap v0.8.3 Downloaded memmap2 v0.9.12 Downloaded once_cell v1.21.4 Downloaded poly1305 v0.8.0 Downloaded rustc-demangle v0.1.28 Downloaded gix-packetline v0.21.5 Downloaded getrandom v0.2.17 Downloaded git2-hooks v0.7.0 Downloaded num-integer v0.1.47 Downloaded gix-trace v0.1.21 Downloaded gix-quote v0.6.2 Downloaded gix-revwalk v0.26.0 Downloaded zmij v1.0.23 Downloaded gix-lock v21.0.2 Downloaded universal-hash v0.5.1 Downloaded icu_provider v2.4.0 Downloaded unicode-bom v2.0.3 Downloaded const-oid v0.9.6 Downloaded defmt v1.2.0 Downloaded gix-hash v0.22.1 Downloaded zerovec-derive v0.11.7 Downloaded gix-worktree v0.47.0 Downloaded gix-path v0.11.3 Downloaded utf_types v1.0.0 Downloaded simplelog v0.12.2 Downloaded walkdir v2.5.0 Downloaded zeroize v1.9.1 Downloaded gix-filter v0.25.0 Downloaded spin v0.9.9 Downloaded faster-hex v0.10.1 Downloaded easy-cast v0.5.5 Downloaded gix-discover v0.46.0 Downloaded gix-error v0.0.0 Downloaded spki v0.7.3 Downloaded gh-emoji v1.0.9 Downloaded notify v8.2.1 Downloaded dashmap v6.2.1 Downloaded crossbeam-epoch v0.9.21 Downloaded elliptic-curve v0.13.8 Downloaded heapless v0.8.0 Downloaded getrandom v0.4.3 Downloaded icu_locale_core v2.4.0 Downloaded gix-transport v0.53.0 Downloaded gix-mailmap v0.30.0 Downloaded gix-revision v0.40.0 Downloaded kstring v2.0.5 Downloaded struct-patch v0.10.5 Downloaded gix-fs v0.19.2 Downloaded struct-patch-derive v0.10.5 Downloaded simd-adler32 v0.3.10 Downloaded which v8.0.6 Downloaded gix-pathspec v0.15.1 Downloaded gix-tempfile v21.0.2 Downloaded gix-submodule v0.25.0 Downloaded openssl-sys v0.9.118 Downloaded crc32fast v1.5.4 Downloaded p256 v0.13.2 Downloaded plist v1.10.3 Downloaded miniz_oxide v0.9.1 Downloaded gix-features v0.46.2 Downloaded tinyvec v1.13.3 Downloaded icu_normalizer_data v2.4.0 Downloaded gix-diff v0.58.0 Downloaded gix-refspec v0.36.0 Downloaded asyncgit v0.28.1 Downloaded simdutf8 v0.1.5 Downloaded yoke v0.8.4 Downloaded tempfile v3.27.0 Downloaded gix-index v0.46.0 Downloaded rayon-core v1.13.0 Downloaded rsa v0.9.10 Downloaded rand v0.8.8 Downloaded compact_str v0.8.2 Downloaded crossbeam-channel v0.5.17 Downloaded ed25519-dalek v2.2.0 Downloaded gix-config v0.51.0 Downloaded icu_collections v2.4.0 Downloaded bwrap v1.3.0 Downloaded gix-odb v0.75.0 Downloaded gix-status v0.25.0 Downloaded gix-protocol v0.56.0 Downloaded crypto-bigint v0.5.5 Downloaded url v2.5.8 Downloaded der v0.7.10 Downloaded prodash v31.0.1 Downloaded gix-ref v0.58.0 Downloaded gix-dir v0.20.0 Downloaded gix-object v0.55.0 Downloaded tui-textarea v0.7.0 Downloaded zerotrie v0.2.5 Downloaded flate2 v1.1.10 Downloaded fancy-regex v0.16.2 Downloaded ssh-key v0.6.7 Downloaded gix-pack v0.65.0 Downloaded aes-gcm v0.10.3 Downloaded crossterm v0.28.1 Downloaded num-bigint-dig v0.8.6 Downloaded hashbrown v0.16.1 Downloaded cc v1.11.0 Downloaded hashbrown v0.15.5 Downloaded hashbrown v0.14.5 Downloaded jiff-core v0.1.2 Downloaded idna v1.1.0 Downloaded p521 v0.13.3 Downloaded unicode-normalization v0.1.26 Downloaded imara-diff v0.1.8 Downloaded zerovec v0.11.9 Downloaded itertools v0.13.0 Downloaded ron v0.12.3 Downloaded winnow v0.7.15 Downloaded sysinfo v0.33.1 Downloaded icu_properties v2.4.0 Downloaded rayon v1.12.0 Downloaded serde_json v1.0.154 Downloaded chrono v0.4.45 Downloaded icu_properties_data v2.4.0 Downloaded git2 v0.21.0 Downloaded p384 v0.13.1 Downloaded git2 v0.20.4 Downloaded gix v0.78.0 Downloaded unicode-width v0.2.0 Downloaded curve25519-dalek v4.1.3 Downloaded quick-xml v0.42.0 Downloaded gimli v0.34.0 Downloaded bstr v1.13.1 Downloaded zlib-rs v0.6.8 Downloaded vcpkg v0.2.15 Downloaded encoding_rs v0.8.44 Downloaded unicode-width v0.1.14 Downloaded zerocopy v0.8.63 Downloaded rustix v0.38.44 Downloaded object v0.40.0 Downloaded icu_normalizer v2.4.0 Downloaded two-face v0.4.5 Downloaded ratatui v0.29.0 Downloaded libssh2-sys v0.3.3 Downloaded jiff v0.2.39 Downloaded sha1-checked v0.10.0 Downloaded libz-sys v1.1.31 Downloaded syntect v5.3.0 Downloaded libgit2-sys v0.18.8+1.9.7 Downloaded linux-raw-sys v0.4.15 Downloaded openssl-src v300.6.1+3.6.3 Downloaded 278 crates (33.6MiB) in 23.39s (largest was openssl-srcat 6.9MiB) Compiling libc v0.2.191 Compiling proc-macro2 v1.0.107 Compiling quote v1.0.47 Compiling unicode-ident v1.0.27 Compiling cfg-if v1.0.5 Compiling zeroize v1.9.1 Compiling version_check v0.9.5 Compiling typenum v1.20.1 Compiling memchr v2.8.3 Compiling subtle v2.6.1 Compiling regex-syntax v0.8.11 Compiling serde_core v1.0.229 Compiling const-oid v0.9.6 Compiling smallvec v1.16.4 Compiling thiserror v2.0.21 Compiling autocfg v1.5.1 Compiling cpufeatures v0.2.17 Compiling crossbeam-utils v0.8.23 Compiling getrandom v0.4.3 Compiling generic-array v0.14.7 Compiling stable_deref_trait v1.2.1 Compiling scopeguard v1.2.0 Compiling parking_lot_core v0.9.12 Compiling fastrand v2.5.0 Compiling lock_api v0.4.14 Compiling gix-trace v0.1.21 Compiling tinyvec v1.13.3 Compiling same-file v1.0.6 Compiling aho-corasick v1.1.5 Compiling crc32fast v1.5.4 Compiling once_cell v1.21.4 Compiling walkdir v2.5.0 Compiling unicode-normalization v0.1.26 Compiling crossbeam-channel v0.5.17 Compiling zlib-rs v0.6.8 Compiling syn v3.0.9 Compiling equivalent v1.0.3 Compiling byteorder v1.5.0 Compiling heapless v0.8.0 Compiling itoa v1.0.18 Compiling hash32 v0.3.1 Compiling faster-hex v0.10.1 Compiling allocator-api2 v0.2.21 Compiling crypto-common v0.1.7 Compiling block-buffer v0.10.4 Compiling jiff-core v0.1.2 Compiling digest v0.10.7 Compiling foldhash v0.2.0 Compiling sha1 v0.10.7 Compiling winnow v0.7.15 Compiling hashbrown v0.16.1 Compiling rustix v1.1.6 Compiling parking_lot v0.12.5 Compiling sha1-checked v0.10.0 Compiling regex-automata v0.4.18 Compiling prodash v31.0.1 Compiling getrandom v0.2.17 Compiling memmap2 v0.9.12 Compiling jiff v0.2.39 Compiling linux-raw-sys v0.12.1 Compiling bitflags v2.13.2 Compiling rand_core v0.6.4 Compiling rustversion v1.0.23 Compiling find-msvc-tools v0.1.15 Compiling shlex v2.0.1 Compiling syn v2.0.119 Compiling hashbrown v0.14.5 Compiling jobserver v0.1.35 Compiling pkg-config v0.3.34 Compiling cc v1.11.0 Compiling vcpkg v0.2.15 Compiling static_assertions v1.1.0 Compiling der v0.7.10 Compiling log v0.4.35 Compiling block-padding v0.3.3 Compiling serde v1.0.229 Compiling dashmap v6.2.1 Compiling unicode-bom v2.0.3 Compiling inout v0.1.4 Compiling kstring v2.0.5 Compiling cipher v0.4.4 Compiling sha2 v0.10.9 Compiling either v1.19.0 Compiling libm v0.2.16 Compiling ff v0.13.1 Compiling signature v2.2.0 Compiling gix-sec v0.13.3 Compiling num-traits v0.2.19 Compiling writeable v0.6.4 Compiling litemap v0.8.3 Compiling fnv v1.0.7 Compiling base16ct v0.2.0 Compiling utf_types v1.0.0 Compiling percent-encoding v2.3.2 Compiling zerocopy v0.8.63 Compiling foldhash v0.1.5 Compiling spki v0.7.3 Compiling hashbrown v0.15.5 Compiling utf8_iter v1.1.0 Compiling sec1 v0.7.3 Compiling tempfile v3.27.0 Compiling synstructure v0.14.0 Compiling openssl-src v300.6.1+3.6.3 Compiling group v0.13.0 Compiling bstr v1.13.1 Compiling crypto-bigint v0.5.5 Compiling icu_properties_data v2.4.0 Compiling shell-words v1.1.1 Compiling icu_normalizer_data v2.4.0 Compiling crossbeam-epoch v0.9.21 Compiling encoding_rs v0.8.44 Compiling hmac v0.12.1 Compiling libz-sys v1.1.31 Compiling openssl-sys v0.9.118 Compiling libssh2-sys v0.3.3 Compiling filetime v0.2.29 Compiling universal-hash v0.5.1 Compiling gix-validate v0.11.4 Compiling gix-utils v0.3.6 Compiling gix-error v0.0.0 Compiling gix-date v0.13.0 Compiling gix-chunk v0.5.0 Compiling thiserror-impl v2.0.21 Compiling zerofrom-derive v0.1.8 Compiling yoke-derive v0.8.4 Compiling zerovec-derive v0.11.7 Compiling displaydoc v0.2.7 Compiling serde_derive v1.0.229 Compiling elliptic-curve v0.13.8 Compiling zerofrom v0.1.8 Compiling crossbeam-deque v0.8.8 Compiling semver v1.0.28 Compiling yoke v0.8.4 Compiling rayon-core v1.13.0 Compiling gix-path v0.11.3 Compiling gix-actor v0.38.0 Compiling gix-quote v0.6.2 Compiling zerovec v0.11.9 Compiling zerotrie v0.2.5 Compiling gix-features v0.46.2 Compiling gix-config-value v0.17.2 Compiling gix-command v0.7.1 Compiling gix-packetline v0.21.5 Compiling gix-bitmap v0.2.16 Compiling opaque-debug v0.3.1 Compiling gix-hash v0.22.1 Compiling gix-fs v0.19.2 Compiling gix-glob v0.24.0 Compiling rustc_version v0.4.1 Compiling tinystr v0.8.5 Compiling potential_utf v0.1.6 Compiling gix-hashtable v0.12.0 Compiling gix-object v0.55.0 Compiling gix-tempfile v21.0.2 Compiling gix-commitgraph v0.32.0 Compiling gix-attributes v0.30.1 Compiling icu_locale_core v2.4.0 Compiling icu_collections v2.4.0 Compiling gix-lock v21.0.2 Compiling gix-ignore v0.19.1 Compiling gix-pathspec v0.15.1 Compiling rfc6979 v0.4.0 Compiling libgit2-sys v0.18.8+1.9.7 Compiling mio v1.2.4 Compiling errno v0.3.14 Compiling ident_case v1.0.1 Compiling multiversion_no_op v1.0.0 Compiling signal-hook v0.3.18 Compiling icu_provider v2.4.0 Compiling num-conv v0.2.2 Compiling core_detect v1.0.0 Compiling strsim v0.11.1 Compiling simdutf8 v0.1.5 Compiling time-core v0.1.9 Compiling icu_normalizer v2.4.0 Compiling gix-revwalk v0.26.0 Compiling gix-ref v0.58.0 Compiling time-macros v0.2.32 Compiling darling_core v0.24.1 Compiling icu_properties v2.4.0 Compiling gix-traverse v0.52.0 Compiling ppv-lite86 v0.2.21 Compiling signal-hook-registry v1.4.8 Compiling gix-index v0.46.0 Compiling rand_chacha v0.3.1 Compiling ecdsa v0.16.9 Compiling curve25519-dalek v4.1.3 Compiling polyval v0.6.2 Compiling num-integer v0.1.47 Compiling gix-url v0.35.3 Compiling primeorder v0.13.6 Compiling option-ext v0.2.0 Compiling adler2 v2.0.1 Compiling unicode-segmentation v1.13.3 Compiling simd-adler32 v0.3.10 Compiling powerfmt v0.2.1 Compiling num-bigint-dig v0.8.6 Compiling deranged v0.5.9 Compiling zmij v1.0.23 Compiling base64ct v1.8.3 Compiling inotify-sys v0.1.8 Compiling arrayvec v0.7.8 Compiling gix-worktree v0.47.0 Compiling spin v0.9.9 Compiling rustix v0.38.44 Compiling uluru v3.1.0 Compiling lazy_static v1.5.1 Compiling pem-rfc7468 v0.7.0 Compiling idna_adapter v1.2.2 Compiling miniz_oxide v0.9.1 Compiling num-iter v0.1.46 Compiling dirs-sys v0.5.0 Compiling gix-discover v0.46.0 Compiling gix-filter v0.25.0 Compiling ghash v0.5.1 Compiling rand v0.8.8 Compiling gix-revision v0.40.0 Compiling curve25519-dalek-derive v0.1.1 Compiling time v0.3.55 Compiling imara-diff v0.1.8 Compiling pkcs8 v0.10.2 Compiling aes v0.8.4 Compiling ctr v0.9.2 Compiling clru v0.6.3 Compiling aead v0.5.2 Compiling serde_json v1.0.154 Compiling bit-vec v0.8.0 Compiling unicode-width v0.2.0 Compiling unicode-width v0.1.14 Compiling paste v1.0.15 Compiling linux-raw-sys v0.4.15 Compiling hashbrown v0.17.1 Compiling heck v0.5.0 Compiling utf8parse v0.2.2 Compiling bit-set v0.8.0 Compiling darling_macro v0.24.1 Compiling anstyle-parse v1.0.0 Compiling aes-gcm v0.10.3 Compiling gix-pack v0.65.0 Compiling gix-refspec v0.36.0 Compiling strum_macros v0.26.4 Compiling gix-diff v0.58.0 Compiling darling v0.24.1 Compiling pkcs1 v0.7.5 Compiling rayon v1.12.0 Compiling indexmap v2.14.2 Compiling signal-hook-mio v0.2.5 Compiling gix-dir v0.20.0 Compiling dirs v6.0.0 Compiling ssh-encoding v0.2.0 Compiling idna v1.1.0 Compiling gix-transport v0.53.0 Compiling gix-config v0.51.0 Compiling gix-shallow v0.8.1 Compiling poly1305 v0.8.0 Compiling maybe-async v0.2.11 Compiling form_urlencoded v1.2.2 Compiling itertools v0.13.0 Compiling ed25519 v2.2.3 Compiling cbc v0.1.2 Compiling blowfish v0.9.1 Compiling chacha20 v0.9.1 Compiling arc-swap v1.9.3 Compiling castaway v0.2.4 Compiling pbkdf2 v0.12.2 Compiling quick-xml v0.42.0 Compiling iana-time-zone v0.1.65 Compiling siphasher v1.0.4 Compiling indoc v2.0.8 Compiling typeid v1.0.3 Compiling ryu v1.0.23 Compiling is_terminal_polyfill v1.70.2 Compiling anstyle-query v1.1.5 Compiling base64 v0.23.1 Compiling anstyle v1.0.14 Compiling colorchoice v1.0.5 Compiling compact_str v0.8.2 Compiling gix-protocol v0.56.0 Compiling phf_shared v0.14.0 Compiling anstream v1.0.0 Compiling instability v0.3.14 Compiling chrono v0.4.45 Compiling gix-odb v0.75.0 Compiling bcrypt-pbkdf v0.10.0 Compiling plist v1.10.3 Compiling gix-submodule v0.25.0 Compiling ssh-cipher v0.2.0 Compiling ed25519-dalek v2.2.0 Compiling url v2.5.8 Compiling strum v0.26.3 Compiling inotify v0.11.5 Compiling unicode-truncate v1.1.0 Compiling rsa v0.9.10 Compiling gix-status v0.25.0 Compiling shellexpand v3.1.2 Compiling crossterm v0.28.1 Compiling fancy-regex v0.16.2 Compiling flate2 v1.1.10 Compiling p384 v0.13.1 Compiling p256 v0.13.2 Compiling p521 v0.13.3 Compiling bincode v1.3.3 Compiling git-version-macro v0.3.9 Compiling gix-mailmap v0.30.0 Compiling lru v0.12.5 Compiling itertools v0.14.0 Compiling notify-types v2.2.0 Compiling thread_local v1.1.10 Compiling cassowary v0.3.0 Compiling gimli v0.34.0 Compiling anyhow v1.0.104 Compiling clap_lex v1.1.1 Compiling openssl-probe v0.1.6 Compiling bugreport v0.5.1 Compiling clap_builder v4.6.7 Compiling ssh-key v0.6.7 Compiling ratatui v0.29.0 Compiling git-version v0.3.9 Compiling fuzzy-matcher v0.3.7 Compiling notify v8.2.1 Compiling syntect v5.3.0 Compiling gix v0.78.0 Compiling gitui v0.28.1 Compiling sysinfo v0.33.1 Compiling phf v0.14.0 Compiling struct-patch-derive v0.10.5 Compiling regex v1.13.1 Compiling unicode-truncate v2.0.1 Compiling scopetime v0.1.2 Compiling object v0.40.0 Compiling easy-cast v0.5.5 Compiling rustc-demangle v0.1.28 Compiling shell-escape v0.1.5 Compiling two-face v0.4.5 Compiling addr2line v0.27.1 Compiling clap v4.6.7 Compiling ron v0.12.3 Compiling tui-textarea v0.7.0 Compiling struct-patch v0.10.5 Compiling gh-emoji v1.0.9 Compiling notify-debouncer-mini v0.7.0 Compiling simplelog v0.12.2 Compiling bwrap v1.3.0 Compiling filetreelist v0.6.0 Compiling which v8.0.6 Compiling base64 v0.22.1 Compiling bytesize v2.7.0 Compiling backtrace v0.3.77 Compiling git2 v0.21.0 Compiling git2 v0.20.4 Compiling git2-hooks v0.7.0 Compiling asyncgit v0.28.1 error[E0308]: mismatched types --> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:124:34 | 124 | Ok(git2_hooks::hooks_commit_msg(&repo, None, msg)?.into()) | ---------------------------- ^^^^^ expectedgit2::repo::Repository, found git2::Repository| | | arguments to this function are incorrect | note: there are multiple different versions of crategit2in the dependency graph --> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/repo.rs:110:1 | 110 | pub struct Repository { | ^^^^^^^^^^^^^^^^^^^^^ this is the expected type | ::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/repo.rs:109:1 | 109 | pub struct Repository { | --------------------- this is the found type = help: you can usecargo tree` to explore your dependency tree
note: function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:184:8
|
184 | pub fn hooks_commit_msg(
| ^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:133:34
|
133 | Ok(git2_hooks::hooks_pre_commit(&repo, None)?.into())
| ---------------------------- ^^^^^ expected git2::repo::Repository, found git2::Repository
| |
| arguments to this function are incorrect
|
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/repo.rs:110:1
|
110 | pub struct Repository {
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/repo.rs:109:1
|
109 | pub struct Repository {
| --------------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:208:8
|
208 | pub fn hooks_pre_commit(
| ^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:142:35
|
142 | Ok(git2_hooks::hooks_post_commit(&repo, None)?.into())
| ----------------------------- ^^^^^ expected git2::repo::Repository, found git2::Repository
| |
| arguments to this function are incorrect
|
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/repo.rs:110:1
|
110 | pub struct Repository {
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/repo.rs:109:1
|
109 | pub struct Repository {
| --------------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:222:8
|
222 | pub fn hooks_post_commit(
| ^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:156:3
|
155 | Ok(git2_hooks::hooks_prepare_commit_msg(
| ------------------------------------ arguments to this function are incorrect
156 | &repo, None, source, msg,
| ^^^^^ expected git2::repo::Repository, found git2::Repository
|
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/repo.rs:110:1
|
110 | pub struct Repository {
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/repo.rs:109:1
|
109 | pub struct Repository {
| --------------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:284:8
|
284 | pub fn hooks_prepare_commit_msg(
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:172:3
|
171 | if !git2_hooks::hook_available(
| -------------------------- arguments to this function are incorrect
172 | &repo,
| ^^^^^ expected git2::repo::Repository, found git2::Repository
|
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/repo.rs:110:1
|
110 | pub struct Repository {
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/repo.rs:109:1
|
109 | pub struct Repository {
| --------------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:52:8
|
52 | pub fn hook_available(
| ^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:214:3
|
213 | Ok(git2_hooks::hooks_pre_push(
| -------------------------- arguments to this function are incorrect
214 | &repo,
| ^^^^^ expected git2::repo::Repository, found git2::Repository
|
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/repo.rs:110:1
|
110 | pub struct Repository {
| ^^^^^^^^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/repo.rs:109:1
|
109 | pub struct Repository {
| --------------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:247:8
|
247 | pub fn hooks_pre_push(
| ^^^^^^^^^^^^^^
error[E0308]: arguments to this function are incorrect
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:244:5
|
244 | Ok(PrePushRef::new(
| ^^^^^^^^^^^^^^^
|
note: expected git2::oid::Oid, found Oid
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:245:14
|
245 | local_ref, local_oid, remote_ref, remote_oid,
| ^^^^^^^^^
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/oid.rs:63:1
|
63 | pub struct Oid {
| ^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/oid.rs:14:1
|
14 | pub struct Oid {
| -------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: expected git2::oid::Oid, found Oid
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:245:37
|
245 | local_ref, local_oid, remote_ref, remote_oid,
| ^^^^^^^^^^
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/oid.rs:63:1
|
63 | pub struct Oid {
| ^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/oid.rs:14:1
|
14 | pub struct Oid {
| -------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: associated function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:70:9
|
70 | pub fn new(
| ^^^
error[E0308]: arguments to this function are incorrect
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:266:17
|
266 | updates.push(PrePushRef::new(
| ^^^^^^^^^^^^^^^
|
note: expected git2::oid::Oid, found Oid
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:268:5
|
268 | tag_oid,
| ^^^^^^^
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/oid.rs:63:1
|
63 | pub struct Oid {
| ^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/oid.rs:14:1
|
14 | pub struct Oid {
| -------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: expected git2::oid::Oid, found Oid
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.28.1/src/sync/hooks.rs:270:5
|
270 | advertised_oid,
| ^^^^^^^^^^^^^^
note: there are multiple different versions of crate git2 in the dependency graph
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.21.0/src/oid.rs:63:1
|
63 | pub struct Oid {
| ^^^^^^^^^^^^^^ this is the expected type
|
::: /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-0.20.4/src/oid.rs:14:1
|
14 | pub struct Oid {
| -------------- this is the found type
= help: you can use cargo tree to explore your dependency tree
note: associated function defined here
--> /home/wsluser/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git2-hooks-0.7.0/src/lib.rs:70:9
|
70 | pub fn new(
| ^^^
For more information about this error, try rustc --explain E0308.
error: could not compile asyncgit (lib) due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile gitui v0.28.1, intermediate artifacts can be found at /tmp/cargo-installgM4GQY.
To reuse those artifacts with a future compilation, set the environment variable CARGO_BUILD_BUILD_DIR to that path.
[wsluser@wslarch nvim]$`
Activity