haskell-infra / hackage-trustees

Issue tracker for Hackage maintainance and trustee operations
https://hackage.haskell.org/packages/trustees/
42 stars 7 forks source link

binary 0.8.7 doesn't allow ghc 8.6.3 #234

Closed cartazio closed 5 years ago

cartazio commented 5 years ago

@hvr @23skidoo , i'm quite confused about what is happening here, i dont see any constraints...

$ cabal v2-install binary --dry
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: binary-0.8.7.0 (user goal)
[__1] next goal: ghc (user goal)
[__1] rejecting: ghc-8.6.5, ghc-8.6.4 (constraint from user target requires
==8.6.3)
[__1] rejecting: ghc-8.6.3/installed-8.6... (conflict: binary==0.8.7.0, ghc =>
binary==0.8.6.0/installed-0.8...)
[__1] rejecting: ghc-8.6.1, ghc-8.4.4, ghc-8.4.3, ghc-8.4.1, ghc-8.2.2,
ghc-8.2.1 (constraint from user target requires ==8.6.3)
[__1] fail (backjumping, conflict set: binary, ghc)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: binary, ghc

if this weren't v2, i'd be thinking that its about ghc needing binary 0.8.6.0 ..

23Skidoo commented 5 years ago

/cc @typedrat I think it's because you're using install instead of build, so it tries to solve for a globally consistent package set, which includes ghc so that you could fire up ghci and be able to load both ghc and binary.

phadej commented 5 years ago

I'm quite sure this is duplicate of https://github.com/haskell/cabal/issues/5888 and https://github.com/haskell/cabal/issues/5559

I.e. after v2-install --lib things go bananas.

EDIT: anyway, this is not hackage-trustees issue.

cartazio commented 5 years ago

Gotcha on global consistency

So there’s probably some better error info about this that could be presented so users know it’ll be fine as a build dep

On Tue, Jul 23, 2019 at 12:44 PM Oleg Grenrus notifications@github.com wrote:

I'm quite sure this is duplicate of haskell/cabal#5888 https://github.com/haskell/cabal/issues/5888 and haskell/cabal#5559 https://github.com/haskell/cabal/issues/5559

I.e. after v2-install --lib things go bananas.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haskell-infra/hackage-trustees/issues/234?email_source=notifications&email_token=AAABBQT7ZJYMOCBAZOSCLNTQA4YNVA5CNFSM4IGFPUKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2TXI7Y#issuecomment-514290815, or mute the thread https://github.com/notifications/unsubscribe-auth/AAABBQS5VER6G5CP6XSCXALQA4YNVANCNFSM4IGFPUKA .