Skip to content

custom-setup constraint leaks into non-custom-setup constraints #4196

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

Closed
hvr opened this issue Dec 30, 2016 · 1 comment
Closed

custom-setup constraint leaks into non-custom-setup constraints #4196

hvr opened this issue Dec 30, 2016 · 1 comment
Milestone

Comments

@hvr
Copy link
Member

hvr commented Dec 30, 2016

With this bug.cabal

name:                bug
version:             0.1.0.0
build-type:          Simple
cabal-version:       >=1.10

library
  default-language:    Haskell2010
  build-depends:       base == 4.*, Cabal == 1.18.*

cabal new-build -w ghc-7.8.4 fails unexpectedly with

Resolving dependencies...
cabal: Could not resolve dependencies:
trying: bug-0 (user goal)
next goal: Cabal (dependency of bug-0)
rejecting: Cabal-1.18.1.5/installed-647... (constraint from new-build's
support of Custom Setup (issue #3932) requires >=1.20)
rejecting: Cabal-1.24.2.0, Cabal-1.24.0.0, Cabal-1.22.8.0, Cabal-1.22.7.0,
Cabal-1.22.6.0, Cabal-1.22.5.0, Cabal-1.22.4.0, Cabal-1.22.3.0,
Cabal-1.22.2.0, Cabal-1.22.1.1, Cabal-1.22.1.0, Cabal-1.22.0.0,
Cabal-1.20.0.4, Cabal-1.20.0.3, Cabal-1.20.0.2, Cabal-1.20.0.1, Cabal-1.20.0.0
(conflict: bug => Cabal==1.18.*)
rejecting: Cabal-1.18.1.7, Cabal-1.18.1.6, Cabal-1.18.1.5, Cabal-1.18.1.4,
Cabal-1.18.1.3, Cabal-1.18.1.2, Cabal-1.18.1.1, Cabal-1.18.1, Cabal-1.18.0,
Cabal-1.16.0.3, Cabal-1.16.0.2, Cabal-1.16.0.1, Cabal-1.16.0, Cabal-1.14.0,
Cabal-1.12.0, Cabal-1.10.2.0, Cabal-1.10.1.0, Cabal-1.10.0.0, Cabal-1.8.0.6,
Cabal-1.8.0.4, Cabal-1.8.0.2, Cabal-1.6.0.3, Cabal-1.6.0.2, Cabal-1.6.0.1,
Cabal-1.4.0.2, Cabal-1.4.0.1, Cabal-1.4.0.0, Cabal-1.2.4.0, Cabal-1.2.3.0,
Cabal-1.2.2.0, Cabal-1.2.1, Cabal-1.1.6 (constraint from new-build's support
of Custom Setup (issue #3932) requires >=1.20)
rejecting: Cabal-1.24.1.0 (conflict: bug => Cabal==1.18.*)
fail (backjumping, conflict set: Cabal, bug)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: Cabal (52), bug (21)
@hvr hvr added the type: bug label Dec 30, 2016
@hvr hvr added this to the 2.0 milestone Dec 30, 2016
@hvr
Copy link
Member Author

hvr commented Dec 30, 2016

Turns out, this is actually a known issue and a PR exists already (see #4058)...

ping @dcoutts @ezyang

@hvr hvr closed this as completed in 19d9738 Jan 1, 2017
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

1 participant