-
Notifications
You must be signed in to change notification settings - Fork 710
Combine non-installable and non-upgradable package lists (fixes #8581) #9148
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
Conversation
LGTM, as far as I can tell we are consolidating dealing with non-reinstallable packages into cabal-install, removing some machinery from cabal-install-solver. Very happy with this. I noted a couple of minor cleanups we could do, I'd appreciate if you could have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reviews! I updated my PR and also removed some more code that became unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
…ll#8581) This commit continues the work in b016e59 to combine the lists of non-installable and non-upgradable packages. When a package is in the list, it means that the solver will only consider installed instances of that package. This commit renames the list from "non-upgradable" to "non-reinstallable" to clarify that the packages cannot be upgraded or downgraded. There should be no change in behavior, except for the wording of solver error messages.
The TODO deleted in 4d3f7b5 suggests that the special case was only needed for the top-down solver, which has been removed.
Thanks! I rebased onto master. |
This commit continues the work in b016e59 to combine the lists of non-installable and non-upgradable packages. When a package is in the list, it means that the solver will only consider installed instances of that package. This commit renames the list from "non-upgradable" to "non-reinstallable" to clarify that the packages cannot be upgraded or downgraded. There should be no change in behavior, except for the wording of solver error messages.
Please read Github PR Conventions and then fill in one of these two templates.
Template Β: This PR does not modify
cabal
behaviour (documentation, tests, refactoring, etc.)Include the following checklist in your PR: