-
Notifications
You must be signed in to change notification settings - Fork 710
Allow-newer conditional on GHC-version is not respected #9158
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
Comments
I just checked and it seems like it doesn't have to do with having conditional and unconditional
|
Sorry for the confusion. I really don't understand what happened as I was getting those errors consistently. However, I switched the ghc un GHCup, then removed dist-newstyle, etc, and now it works. Perhaps some stale info was in |
Ok I do have a reproduction:
|
Describe the bug
The
allow-newer
constraints don't get respected when enclosed in a conditional block.To Reproduce
Checkout this commit: https://github.com/input-output-hk/ouroboros-consensus/tree/ed184183d048af6126f9e00e32862d669e705899. And maybe you need to install some dependencies, in particular
pkg-config
,libsodium
andliblmdb-dev
in Ubuntu.succesfully creates a build plan. However, applying this diff:
results in cabal failing to create a build plan, by saying:
So the constraint
allow-newer: *:base
is not being respected.Expected behavior
I expected cabal to produce a build plan.
System information
The text was updated successfully, but these errors were encountered: