-
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
Cabal build and cabal test should install their own dependencies #2176
Comments
I 100% agree. The plan is to automatically install dependencies at least when sandboxes are used (as that's always safe), but no one has had time to work on it yet. |
Two issues that bother me a little bit:
I suggest that we should only try installing dependencies when
|
You don't need to run the solver on each cabal build. I don't see it as "too much magic". When I write Clojure, I can run Prompts are problematic for scripting. |
This can be solved with an |
It's annoying for scripting and live users. It's one of my least favorite things about |
I think we should just do the right thing and have an escape hatch for people who want it (e.g. --no-install-deps or some sort.) The current cabal is way to stateful, probably a leftover from some configure/make legacy. Modern build systems don't work this way and for good reasons: a stateful model is harder to work with and makes reproducible builds much harder (because the command line invocation no longer captures the whole set of configuration.) |
|
BTW, |
+1 for avoid prompts here. Even besides prompts are good or bad, making non-interactive command(in this case, |
+1 for all steps towards a less stateful model. The stateful nature of the thing has caused so much pain. Especially when using it in complex configurations and by scripts rather than with careful manual interaction. |
Another +1 for avoiding prompts and just doing the right thing by default. Better to optimize for the general case where typical users want things to just work smoothly with minimal intervention. Power users that really need to see every step and have greater control should be the ones using custom flags, not the other way around. |
What percentage of apt-get users even know that this is available? For that matter, what percentage of apt-get users know that |
@danielcompton not only that, but it's incredibly error prone with
|
cabal install --dependencies-only
andcabal install --dependencies-only --enable-tests
Users don't know or care about a (stateful) plan maintained via configure or otherwise. They have declarative commands that they want to work the first time.
The text was updated successfully, but these errors were encountered: