-
Notifications
You must be signed in to change notification settings - Fork 710
--enable-tests / --test-option(s) causes recalculation #6114
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
Comments
I'm afraid that what you seem to be asking is at odds with the goal for And However, one thing we could do is to create a solver-cache indexed by solver inputs, so that switching between This would be quite general, and would allow to quickly switch between various flag settings of |
I agree that a solver cache would be a very nice solution to this and related issues. |
I'm not sure if this is the same bug or not but using |
it seems like another one is
|
I think the only part of this not covered by the other ticket is the idea that we could have multiple cached configurations and auto-swap between them? If so we should close this and then open a new ticket for that as a possible enhancement... (It could be a significant amount of design complexity though, depending on how many configs we want to save, with what sorts of different options, etc.) |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Repeatedly swapping between
and
causes a recalculation of all the dependencies (but no recompilation, after the first full build).
To Reproduce
See above
Expected behavior
I would expect (after the first full compilation) no further work by cabal.
System informataion
on any GNU/Linux with any ghc.
Additional context
My projects are quite large with multiple
.cabal
packages and many hackage dependencies. Hence recalculation is quite costly (e.g. 30 seconds every time the dependencies are recomputed). I'm also using a freeze file.In addition,
vs
exhibits the same problem.
A workaround is to always use
--enable-tests
even when doingv2-run tasty
and even though it is redundant.I also typically use
-O0
for these commands, but that's probably irrelevant (much faster dev cycle).The text was updated successfully, but these errors were encountered: