Skip to content
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 should fail if cannot satisfy setup-depends #4474

Closed
phadej opened this issue Apr 28, 2017 · 7 comments
Closed

cabal configure should fail if cannot satisfy setup-depends #4474

phadej opened this issue Apr 28, 2017 · 7 comments

Comments

@phadej
Copy link
Collaborator

phadej commented Apr 28, 2017

Related: ulidtko/cabal-doctest#11

$ /opt/cabal/2.0/bin/cabal configure -w /opt/ghc/8.2.1/bin/ghc
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: distributive-0.5.2:+tagged
unknown package: tagged (dependency of distributive-0.5.2:+tagged)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: distributive, distributive-0.5.2:flag,
taggedTrying configure anyway.
[1 of 1] Compiling Main             ( dist/setup/setup.hs, dist/setup/Main.o )

... compiler error

That's very frustrating, and doesn't make sense.

I hope this can be fixed quickly, I'm more than happy to make a PR, if no-one objects (for a very good reason).

@23Skidoo
Copy link
Member

I actually fixed this before, but it broke the containers test suite and was reverted. See #1575.

@phadej
Copy link
Collaborator Author

phadej commented Apr 28, 2017

I'd say that default behavior should be: fail; if you don't it to fail, you have to say that explicitly.

@23Skidoo 23Skidoo added this to the 2.0.1 milestone Apr 28, 2017
@23Skidoo
Copy link
Member

23Skidoo commented Apr 28, 2017

OK, this suggestion can be implemented, though people relying on that feature will be angry :-).

@angerman
Copy link
Collaborator

Not sure if this is related, but running cabal configure or cabal new-configure, with or without --allow-newer, where cabal is built with new-build, never returns but runs at 100% cpu.

-v gives:

[...]
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update

and then nothing.

@grayjay
Copy link
Collaborator

grayjay commented Apr 29, 2017

There is also #2614.

@phadej
Copy link
Collaborator Author

phadej commented Apr 29, 2017

So many duplicate issues; should we close them (newers) with duplicate label?

@23Skidoo
Copy link
Member

I guess we can close this in favour of #2614.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants