-
Notifications
You must be signed in to change notification settings - Fork 701
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-install >= 3.4 regression: cabal repl -b
fails to install packages in combination with --allow-newer
#7081
Comments
Quick note: I've been able to reproduce this with 5139d6e Also, you can use |
I looked into this, from quick look, the |
This leaves me in a somewhat awkward spot, as |
@RyanGlScott I don't know. Someone can look (bisect) what caused the breakage, and see if there is small backportable change. The code in question is in cabal/cabal-install/src/Distribution/Client/CmdRepl.hs Lines 214 to 231 in f6682ef
And it just screams for "make |
Investigating further, making
In principle this is easier (but not easy) for non-project setting, as there all packages considered are loaded, not interpreted. However in the project case this is difficult, as At the moment I don't see a quick way out, otherwise then something close to "rewrite everything". I'll leave this for now, until the other refactoring might make tackling this easier. |
This popped up again today on IRC. Have the recent refactorings of cabal changed anything? |
Perhaps worth mentioning is that this behaviour doesn't actually need a non-installed package; it works with
|
Supposedly #6972 fixed this. Could you try with master branch? |
@Mikolaj Can still reproduce, but perhaps I did something wrong in compiling Cabal from master?
EDIT: note that you need to horizontally scroll this code block to see the full command lines sometimes |
@tomsmeding: If I didn't break anything, if you did But you are right, this is not fixed, I jumped to conclusions and #7081 (comment) says the merged PR was only the first step. Somebody needs to move this further... |
@Mikolaj Indeed, I was missing a |
cabal repl -b
fails to install packages in combination with --allow-newer
cabal repl -b
fails to install packages in combination with --allow-newer
Could you give #8732 a try? |
@wismill Seems to work for me! Only limited testing, though. |
So, this is a dup of #6859 |
Let me close in that case, but please kindly reopen or open a new issue if the problem persists after #8732 is merged. |
To reproduce this, pick a package that you haven't installed yet, and try the following with
cabal-install-3.4
:Notice that
distributive
isn't built at all! Note that the use of thedistributive
andbase
packages aren't important here. You can substitute them with any other packages and you should still observe a similar effect.The bug does not occur if:
--allow-newer
is omitted:You use
install
instead ofrepl -b
:You use
cabal-install-3.2
instead ofcabal-install-3.4
:The text was updated successfully, but these errors were encountered: