Skip to content

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

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

grayjay
Copy link
Collaborator

@grayjay grayjay commented Jul 25, 2023

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:

@andreabedini
Copy link
Collaborator

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.

Copy link
Collaborator Author

@grayjay grayjay left a 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.

Copy link
Collaborator

@andreabedini andreabedini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

grayjay added 2 commits July 31, 2023 11:40
…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.
@grayjay
Copy link
Collaborator Author

grayjay commented Jul 31, 2023

Thanks! I rebased onto master.

@grayjay grayjay added the merge me Tell Mergify Bot to merge label Jul 31, 2023
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Aug 2, 2023
@grayjay grayjay added merge+no rebase and removed merge me Tell Mergify Bot to merge labels Aug 2, 2023
@mergify mergify bot merged commit 51da23d into haskell:master Aug 2, 2023
@grayjay grayjay deleted the issue-8581 branch August 2, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: solver merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge+no rebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants