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

Stricter solving preferences for deprecated packages and releases #10143

Open
Kleidukos opened this issue Jun 24, 2024 · 1 comment
Open

Stricter solving preferences for deprecated packages and releases #10143

Kleidukos opened this issue Jun 24, 2024 · 1 comment
Labels
re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository re: user experience User experience (UX) issue type: RFC Requests for Comment

Comments

@Kleidukos
Copy link
Member

Kleidukos commented Jun 24, 2024

Context: haskell-unordered-containers/hashable#310 (comment)

From what I understand, the solver has a backtracking behaviour for flags and deprecation statuses, where it will switch flags to see if a particular combination is best suited for what the user has (sometimes unknowingly) asked.

If flags can be kept to a certain value with a freeze file, it's not the case with (transitive) dependencies that we know for sure don't want based on their deprecation status.

It would be interesting to explore the option of having a strict solving mode, optionally enabled of course, which give more expected results in terms of solver errors (“you tried to depend on a deprecated release or package”) rather than an unexpected solver success which nonetheless brings an unwanted dependency.

@Kleidukos Kleidukos added type: RFC Requests for Comment re: user experience User experience (UX) issue labels Jun 24, 2024
@michaelpj
Copy link
Collaborator

@ulysses4ever ulysses4ever added the re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository re: user experience User experience (UX) issue type: RFC Requests for Comment
Projects
None yet
Development

No branches or pull requests

3 participants