cabal test with extra library dirs
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
I use `cabal install --extra-lib-dirs=...` to install my package, because I need to give the path to an `.so` file.
Is it possible to do the same with `cabal test`?
It doesn't take the `--extra-lib-dirs` option, and if I do `cabal configure --extra-lib-dirs=...`, `cabal test` and cabal `cabal build && dist/build/tests/tests` both seem to ignore the configure arguments.
Contributor guide
Research direction
Start by reproducing the reported `cabal test` and `cabal build && dist/build/tests/tests` commands with `--extra-lib-dirs` and a package that needs an `.so` file. Trace how `cabal install`, `cabal configure`, `cabal test`, and `cabal build` handle the option; done means the test executable receives the configured library directory consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system, cli, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100