-
Notifications
You must be signed in to change notification settings - Fork 710
Try to combine lists of non-installable and non-upgradable packages #8581
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
Does somebody has this info? Else now that the two lists are synced, we could give it a try with proper comments. It would be easy to revert and desync the two list again if there is some issue. I think this would help addressing #7993. In what module should this list go? |
@wismill I think it would be fine to try out this change and see whether the tests pass. I think that we should keep the list in Distribution.Client.Dependency. A fix for #7993 could use the ConstraintSource (ConstraintSourceNonUpgradeablePackage) to determine whether a package version is disallowed because it is not upgradable. It may also help to add more unit tests to this test group: cabal/cabal-install/tests/UnitTests/Distribution/Solver/Modular/Solver.hs Lines 151 to 162 in 605a3c6
I think that the test "Refuse to install base without --allow-boot-library-installs" could at least be improved by testing for a larger part of the error message that rejects |
@grayjay |
@wismill I think that the list should stay in |
@grayjay Then correct me if I am wrong, but given the package dependency we can close this issue as non-fixable. |
The list in |
Reopening, because the cabal/cabal-install-solver/src/Distribution/Solver/Modular/Preference.hs Lines 321 to 322 in ab24689
|
@wismill Are you still interested in working on this issue? |
@grayjay I am too busy for the moment. I cannot say when I will be available, sorry. |
Combine non-installable and non-upgradable package lists (fixes #8581)
Issue #8489 showed that cabal contains two separate lists of packages that cannot be installed. This issue is for determining whether the lists have the same meaning and combining them if they are redundant. #8501 synced the contents of the two lists.
One is in the solver and is described as non-installable:
cabal/cabal-install-solver/src/Distribution/Solver/Modular/Solver.hs
Lines 158 to 173 in 09c90de
The other is in Distribution.Client.Dependency and is described as non-upgradable:
cabal/cabal-install/src/Distribution/Client/Dependency.hs
Lines 387 to 414 in 09c90de
If only one is needed, I think we should keep the one in Distribution.Client.Dependency, since it is better to make the solver more general and pass in constraints rather than hard code package names.
The text was updated successfully, but these errors were encountered: