Skip to content

nh displays duplicate error messages during build failures while nixos-build shows single message #177

@cig0

Description

@cig0

Hello, I initially reported this issue in the nh issue tracker (link: nix-community/nh#223) but was redirected here as it appears to be a NOM bug.


When a build error occurs using nh, I've observed that the error message is printed twice in the output. The same build configuration produces only a single error message when using nixos-build.

Image

Steps to reproduce:

  • Using a flake configuration that triggers a build error
  • Running the build with nh
  • Running the same build with nixos-build

Expected behavior:

Error messages should be displayed once, similar to nixos-build

Actual behavior:

The exact error message appears twice in the output when using nh

Additional context:

  • I've observed this behavior across multiple flakes, including my own and two other flakes from different repositories, suggesting this isn't specific to my configuration.
  • If this is unexpected behavior, I can provide my flake configuration for further investigation.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions