Skip to content

Cannot configure containers with tests and benchmarks enabled #462

@m-renaud

Description

@m-renaud

I'm not sure if this is a containers problem or cabal problem, but cabal configure --enable-tests --enable-benchmarks is unable to solve the constraints:

$ cabal configure --enable-tests --enable-benchmarks

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
rejecting: containers-0.5.10.2:!bench (constraint from config file, command
line flag, or user target requires opposite flag selection)
trying: containers-0.5.10.2:*bench
unknown package: random (dependency of containers-0.5.10.2:*bench)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring containers-0.5.10.2...
cabal: Encountered missing dependencies:
ChasingBottoms -any,
HUnit -any,
QuickCheck >=2.7.1,
criterion >=0.4.0 && <1.3,
random <1.2,
test-framework >=0.3.3,
test-framework-hunit -any,
test-framework-quickcheck2 >=0.2.9

This causes our instructions in CONTRIBUTING.md to be more complex than they should be.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions