Skip to content

cabal test all "Failed to find the installed unit" #11677

@meooow25

Description

@meooow25

Describe the bug
cabal test all fails with an error

Error: [Cabal-9341]
Failed to find the installed unit 'containers-tests-0-inplace-test-utils' in package database stack.

This showed up in haskell/containers#1191.

To Reproduce
Steps to reproduce the behavior:

$ git clone -b check-laws https://github.com/meooow25/containers.git
$ cd containers
$ sed -i 's/containers\//-- &/' cabal.project  # optional, to save some time
$ cabal test all

Expected behavior
Tests compile and run.

System information

$ cabal --version
cabal-install version 3.16.1.0
compiled using version 3.16.1.0 of the Cabal library (in-tree)
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.14.1

Additional context
While looking this error up I found #10046, which may be related. The workaround there of doing cabal build all first works here too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions