-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--enable-tests, --enable-documentation defaults #5255
Comments
Can you be more specific in which way "Unit tests and haddock break"? |
Also note that you can set these defaults yourself in ~/.cabal/config? |
Is this about |
Fun fact: |
Upon further investigation:
In my project, I am downloading a local copy of several dependencies and compiling them as local packages. I only want to run my project's tests, not the tests of my dependencies. Some of my dependencies have tests which aren't compatible with my project's build plan. With cabal's current behaviour, I can use I see three possibilities:
|
Related: #5079. |
From the OP description:
|
As no one objected, I'm closing this for reasons described in the previous comment. Please, feel free to re-open if you think it's necessary. Thank you everyone for insightful discussion! |
Unit tests and haddock break when the cabal flags
--enable-tests
,--enable-documentation
are off, which is the default behavior unfortunately. I think--enable-tests
should be on by default when runningcabal install
against a local*.cabal
development package, and--enable-documentation
should generally be on by default, in order to fix haddock.As a workaround, I am explicitly supplying
--enable-tests
to my localcabal install
runs against*.cabal
files; and doing a lot ofghc-check
...cabal install --force-reinstalls --enable-documentation
... to fix haddock for the dependency packages that were already installed.The text was updated successfully, but these errors were encountered: