Closed
Description
Describe the bug
gitui installation fails on compiling asyncgit v0.27.0
To Reproduce
On the terminal, with an up-to-date version of cargo, run cargo install
. This also happens with cargo install-update gitui
and cargo install-update -a
.
Expected behavior
An error-free installation or updating of gitui
Error (middle part cut out)
> cargo install gitui
...
Compiling gix-discover v0.37.0
Compiling gix-odb v0.66.0
Compiling gix v0.69.1
Compiling git2 v0.20.1
Compiling git2-hooks v0.4.0
Compiling asyncgit v0.27.0
error[E0621]: explicit lifetime required in the type of `patch`
--> /home/max/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/asyncgit-0.27.0/src/sync/patches.rs:66:2
|
44 | patch: &Patch<'a>,
| ---------- help: add explicit lifetime `'a` to the type of `patch`: `&'a git2::Patch<'a>`
...
66 | Ok(res)
| ^^^^^^^ lifetime `'a` required
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-installz8TeGV`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Context (please complete the following information):
- OS/Distro + Version: Fedora Linux 41 (Workstation Edition)
- GitUI Version: v0.24.3 (already installed) v0.27.0 (trying to install)
- Rust version: 1.85.1
Metadata
Metadata
Assignees
Labels
No labels