-
Notifications
You must be signed in to change notification settings - Fork 710
Pre-release and multi-repl incompatible with Custom setup #9632
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
This is expected. The multi-repl functionality needs Cabal>=3.11, and cabal-install can't conjure it from nothing. What do you suggest should happen? |
I think maybe the best we can do is document the workaround somewhere. I guess if it was possible it would be good to be able to bundle the Cabal and Cabal-syntax libraries with cabal-install for pre-releases, but I don't think that's doable (or at least not easily) |
@TeofilC thanks for figuring out the workaround! I hit the same issue recently. |
See #9741 for an idea about how to tackle this. |
Definitely this should be documented somewhere but TBH it is not an issue that has to be fixed. As @fgaz says, Cabal 3.11 hasn't been released yet and source-repository-package is the way to get a package from github. |
I forgot to link to it here, but I've already added some documentation of this to the README in the static pre-releases patch: Lines 50 to 61 in 9025af5
|
Closing, as this isn't relevant any more to the latest pre-release, afaict. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Cabal's multi-repl support requires a version of the Cabal library >=3.11.
This is fine when using
cabal-install
's builtin copy of the Cabal library.But when packages' Custom setups require Cabal as build dependency, we run into problems as this version is not yet released, so not available on Hackage, and it's not the version bundled with the user's GHC.
To Reproduce
Try using a pre-release cabal to run
Output
Expected behavior
This should work fine
Workaround
We can work around this issue by adding
Cabal
andCabal-syntax
to our cabal.project using a source-repository-package, eg:The text was updated successfully, but these errors were encountered: