Skip to content

doctest-parallel error #1829

Closed
Closed
@peterbecich

Description

@peterbecich

Describe the bug
Reproduction here: https://github.com/peterbecich/doctest-parallel-issue

nix flake check produces this error, after some significant building time:

building
DocTests: <command line>: cannot satisfy -package ghc
    (use -v for more information)

The test suite uses doctest-parallel (https://hackage.haskell.org/package/doctest-parallel)

The error appears to be different than other DocTests issues: https://github.com/input-output-hk/haskell.nix/issues?q=is%3Aissue+DocTests

  • Build system: x86_64-linux
  • GHC version: 9.2.5
  • Haskell.nix version (or commit) used: 146a785

Steps To Reproduce

This is a haskell.nix Flake to build hackage-server: https://github.com/haskell/hackage-server/pull/1154/files#diff-206b9ce276ab5971a2489d75eb1b12999d4bf3843b7988cbe8d687cfde61dea0

DocTests specified here:
https://github.com/haskell/hackage-server/blob/2e9cfb706e4f1fed0d9359b03e3487d1e8a0bcd1/hackage-server.cabal#L643-L651

PR: haskell/hackage-server#1154

To reproduce the issue, please

  • check out git@github.com:peterbecich/hackage-server.git
    branch nix-flake

  • nix flake check

    • This may take a long time. I have tried to minimize the build a little to isolate this issue but have been unsuccessful.

Expected behavior

nix flake check succeeds

Additional context

hackage-server currently has a shell.nix: https://github.com/haskell/hackage-server/blob/master/shell.nix
cabal test DocTests succeeds in that shell.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions