Skip to content

Build failure in nixpgks #498

@Safenein

Description

@Safenein

Hello, the latest build attempt of gitu failed.

You may find relevant information here:
https://hydra.nixos.org/build/319712359

Strange thing is that the gitu's package.nix didn't change.

Here is the error:

error: Cannot build '/nix/store/1az9i2gfhmp38a8pc34w2j0f9c78q447-gitu-0.40.0.drv'.
       Reason: builder failed with exit code 101.
       Output paths:
         /nix/store/vgkmkhf1hq7g8fq3s2565yidhkvzvnl9-gitu-0.40.0
       Last 25 log lines:
       > 708 |                     if *c1 == ' ' { "space" } else { &c1.to_string() },
       >     |                                                      -^^^^^^^^^^^^^-
       >     |                                                      ||            |
       >     |                                                      ||            temporary value is freed at the end of this statement
       >     |                                                      |creates a temporary value which is freed while still in use
       >     |                                                      borrow later used here
       >     |
       >     = note: consider using a `let` binding to create a longer lived value
       >
       > error[E0716]: temporary value dropped while borrowed
       >    --> src/git/parse/status/mod.rs:709:55
       >     |
       > 709 |                     if *c2 == ' ' { "space" } else { &c2.to_string() }
       >     |                                                      -^^^^^^^^^^^^^-
       >     |                                                      ||            |
       >     |                                                      ||            temporary value is freed at the end of this statement
       >     |                                                      |creates a temporary value which is freed while still in use
       >     |                                                      borrow later used here
       >     |
       >     = note: consider using a `let` binding to create a longer lived value
       >
       > For more information about this error, try `rustc --explain E0716`.
       > warning: `gitu` (lib test) generated 1 warning
       > error: could not compile `gitu` (lib test) due to 2 previous errors; 1 warning emitted
       > warning: build failed, waiting for other jobs to finish...

Flake.nix is built correctly without any errors.

I hope this is the right place for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions