Skip to content
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

Favour non-preferred versions over deprecated versions #10097

Open
jasagredo opened this issue Jun 10, 2024 · 1 comment
Open

Favour non-preferred versions over deprecated versions #10097

jasagredo opened this issue Jun 10, 2024 · 1 comment
Labels
cabal-install: solver meta: tracking re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository type: enhancement

Comments

@jasagredo
Copy link
Collaborator

As of now, deprecated versions and non-preferred versions are treated equally: Cabal will find the preferred versions, try all of them, and if none is acceptable, then try the non-preferred and deprecated versions, with no difference among them.

My understanding is that

  • non-preferred versions are perfectly functioning versions that are just less preferable than preferred versions
  • deprecated versions are malfunctioning versions that should be avoided

So my proposed flow would be the following:

  • when requested for package foo
  • if there are preferred versions, try those in decreasing order of version number
  • if none of those are acceptable, try the non-preferred and non-deprecated versions in decreasing order of version. If one is acceptable, pick it with a warning.
  • if none of those are acceptable, try the deprecated versions in decreasing order of version. If one is acceptable, pick it with a warning/or don't even pick it unless some flag --allow-deprecated=[all|foo|...] is provided.

There are a bunch of issues on this matter, just mentioning deprecated and normal versions, but the non-preferred versions just complicate it even more:

@grayjay
Copy link
Collaborator

grayjay commented Nov 23, 2024

I opened an issue for making this information available in the package index: haskell/hackage-server#1345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: solver meta: tracking re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository type: enhancement
Projects
None yet
Development

No branches or pull requests

3 participants