haskell / haskell/cabal

cabal test with extra library dirs

Open
#1,631 5 comments 0 reactions 0 assignees View on GitHub
blocked: info-needed cabal-install: cmd/test cabal-install: v1- type: bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.