-
Notifications
You must be signed in to change notification settings - Fork 698
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 configure ignores setup-depends #2614
Comments
I wonder if it's using the right version of |
I looked into this a bit further. It turns out :< I'd expect it to just fail with an error message, but I don't know the original rationale. I can't think of a situation where you'd want the configure script when the project isn't buildable. |
Ah. I changed that actually so that that would be an error, but there is a good if somewhat convoluted reason for this. Pinging @dcoutts for details. |
Historically we could not always require that we must find a consistent configuration at the Now that hardly anyone develops using It means that it will become impossible to So summary: yes I think we can now drop the fallback and fail hard if the solver doesn't find a solution there. |
We actually did that once already, but it broke the containers test suite (due to #1575), so the patch was reverted. Now with qualified goals implemented it should be possible to fix this the right way. |
Ah, yes. I knew there was a reason we couldn't fix this just yet. |
Note that the nix-local-build branch doesn't use a fallback, and on |
Closing based on last comment, since nix-local-build/new-build/v2-build is now the default |
I've set up a test case at https://github.com/enolan/cabal-custom-setup-test. It contains a simple project with the following setup-depends section:
And its Setup.hs imports the Development.Shake module. Running
cabal configure
with HEAD cabal and cabal-install results in this:The shake package is not downloaded or built.
The
setup.sh
file grabs cabal from git, creates a sandbox with existing cabal-install, adds Cabal and cabal-install as sources, builds the new cabal-install in the sandbox, and uses it to runcabal configure
.The text was updated successfully, but these errors were encountered: