Skip to content

Cannot build because CREATE_NO_WINDOW is never usedΒ #2702

@Kamilcuk

Description

@Kamilcuk

Describe the bug

When installing gitui with nix on my env, it does not build.

$ nix profile upgrade --all
warning: Found package 'nix', but it was not added from a flake, so it can't be checked for upgrades!
warning: download buffer is full; consider increasing the 'download-buffer-size' setting
error: Cannot build '/nix/store/pa5r9f6lmfwqc54ly1k600njql1si3wh-gitui-0.27.0.drv'.
       Reason: builder failed with exit code 101.
       Output paths:
         /nix/store/vjx1022dyflrgnn7vsjdy9229cnq7llk-gitui-0.27.0
       Last 25 log lines:
       >    Compiling gix-shallow v0.1.0
       >    Compiling gix-index v0.37.0
       >    Compiling ratatui v0.29.0
       >    Compiling gix-config v0.42.0
       >    Compiling gix-discover v0.37.0
       >    Compiling gix-protocol v0.47.0
       >    Compiling gix v0.69.1
       >    Compiling git2-hooks v0.4.0 (/nix/var/nix/builds/nix-build-gitui-0.27.0.drv-3091895-2781798105/source/git2-hooks)
       > error: associated constant `CREATE_NO_WINDOW` is never used
       >    --> git2-hooks/src/hookspath.rs:214:8
       >     |
       > 205 | trait CommandExt {
       >     |       ---------- associated constant in this trait
       > ...
       > 214 |     const CREATE_NO_WINDOW: u32 = 0x0800_0000;
       >     |           ^^^^^^^^^^^^^^^^
       >     |
       > note: the lint level is defined here
       >    --> git2-hooks/src/lib.rs:16:2
       >     |
       > 16  |     dead_code,
       >     |     ^^^^^^^^^
       >
       > error: could not compile `git2-hooks` (lib) due to 1 previous error
       > warning: build failed, waiting for other jobs to finish...
       For full logs, run:
         nix log /nix/store/pa5r9f6lmfwqc54ly1k600njql1si3wh-gitui-0.27.0.drv

To Reproduce

  1. Install nix user installation
  2. Install gitui with nix

Expected behavior

It should build.

Context (please complete the following information):

Additional context

gitui is very increadibly amazing, thank you for making it, it is the best.

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