gitui-org / gitui-org/gitui

Cannot build because CREATE_NO_WINDOW is never used

Ouverte
#2,702 1 commentaire 9 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Rust
Étoiles
22.5k
Forks
773
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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):**
- OS/Distro + Version: Rocky Linux 9.3
- GitUI Version 0.27.0
- Rust version: rustc 1.84.0 (9fc6b4312 2025-01-07)
- nix channel https://nixos.org/channels/nixpkgs-unstable

**Additional context**

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Inspect git2-hooks/src/hookspath.rs around line 214 and the dead_code lint setting in git2-hooks/src/lib.rs around line 16. Reproduce the failure with the Nix installation described in the issue, then verify that the project builds without the unused CREATE_NO_WINDOW error.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
build-system, cli
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.