Skip to content

[3.12.0.0] Failed to find the installed unit #10046

@jasagredo

Description

@jasagredo

Describe the bug

Building a package with cabal 3.12.0.0, I encountered this error:

> cabal test all
...
Error: [Cabal-9341]
Failed to find the installed unit 'cardano-submit-api-3.2.2-inplace' in package database stack.
...
Error: [Cabal-7125]
Tests failed for test:unit from cardano-submit-api-3.2.2.

Output

A subsequent cabal build all was able to find the library and build it, Output collapsed below:

Output

To Reproduce
Not sure how to reproduce it. I used the branch https://github.com/IntersectMBO/cardano-node/tree/js/cabal-error-report. I had compiled the project before the latest commit, and then after updating those source-repository-package this error showed up, but it doesn't seem to be deterministic :(

System information

  • Operating system: Windows 11 + WSL Ubuntu 22.04.4
  • cabal, ghc versions:
❯ cabal --version && ghc --version
cabal-install version 3.11.0.0
compiled using version 3.12.0.0 of the Cabal library
The Glorious Glasgow Haskell Compilation System, version 9.8.2

Additional context
In this same scenario I saw a paraphrasing of the following error (but I lost the terminal output, I will make a proper issue if I see it again, but maybe it is helpful to guess the cause):

When building ouroboros-consensus-cardano:
Encountered private or missing dependencies:
  diff-containers >= 1.1

A cabal clean && cabal build all solved it. Perhaps cabal clean would not have been needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions