Skip to content

"cargo install gitui" abends #2690

@tessus

Description

@tessus

Describe the bug
cargo install gitui abends with the following error message:

error[E0621]: explicit lifetime required in the type of `patch`
  --> /home/build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.27.0/src/sync/patches.rs:66:2
   |
66 |     Ok(res)
   |     ^^^^^^^ lifetime `'a` required
   |
help: add explicit lifetime `'a` to the type of `patch`
   |
44 |     patch: &'a git2::Patch<'a>,
   |             +++++++++

For more information about this error, try `rustc --explain E0621`.
error: could not compile `asyncgit` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gitui v0.27.0`, intermediate artifacts can be found at `/tmp/cargo-installRLrpHY`.

To Reproduce
Steps to reproduce the behavior:

  1. cargo install gitui
  2. wait
  3. See error

Expected behavior
compile successfully

Screenshots
If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • OS/Distro + Version: Debian 13
  • GitUI Version v0.27.0
  • Rust version: 1.89.0 (29483883e 2025-08-04)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions