Skip to content

git2 compile error when cargo installing #503

Closed
@hoijui

Description

@hoijui

when executing cargo install gitui, I get:

   Compiling git2 v0.13.17
error[E0658]: use of unstable library feature 'str_strip': newly added
   --> /home/hoijui/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.17/src/cred.rs:283:39
    |
283 |                 self.path = Some(path.strip_prefix('/').unwrap_or(path).to_string());
    |                                       ^^^^^^^^^^^^
    |
    = note: see issue #67302 <https://github.com/rust-lang/rust/issues/67302> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: failed to compile `gitui v0.11.0`, intermediate artifacts can be found at `/tmp/cargo-installWOyxWf`

Caused by:
  could not compile `git2`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions