Add dependencies used by `PackageTests` to exe:cabal-tests
commitb83cc31f54b91bf432b3c286cc5022801317efc7
authorFendor <power.walross@gmail.com>
Sat, 4 Nov 2023 12:38:49 +0000 (4 13:38 +0100)
committerMikolaj Konarski <mikolaj@well-typed.com>
Fri, 10 Nov 2023 14:54:53 +0000 (10 15:54 +0100)
treecccc0b8f5f3faa9bc636ec7fc9d2969f93a3db6d
parent63309672fc62a609375de4d3e4cca9274ab1ccc4
Add dependencies used by `PackageTests` to exe:cabal-tests

The runner allows the tests to use extra dependencies and the custom Prelude
from 'cabal-testsuite'.
However, if the tests use a dependency, say 'directory', and there are two
packages with the same unit id available in the store, the test fails since
it doesn't know which one to pick.
By including an extra dependency to directory, we force the test runner to
use a specific version directory, fixing the test failure.
cabal-testsuite/cabal-testsuite.cabal