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

Cabal should warn more strongly about outdated hackage indexes #525

Open
noughtmare opened this issue Jul 27, 2022 · 0 comments
Open

Cabal should warn more strongly about outdated hackage indexes #525

noughtmare opened this issue Jul 27, 2022 · 0 comments

Comments

@noughtmare
Copy link

noughtmare commented Jul 27, 2022

Inspired by this stack overflow issue.

Cabal does warn about the package index being out of date, but that is all the way at the top and not very prominent.

I see a few avenues for improvement:

  • use colors
  • add empty lines before and after the warning
  • add an extra warning if the latest version of a required package is lower than a version mentioned in the bounds

Especially the last point could make a huge difference in my opinion. Specifically, in the stack overflow question linked above the problem is that cardano-wallet requires blockfrost-client-core>=0.4 && <0.5, but the latest version in the index is blockfrost-client-core-0.2.0.0. In this case cabal could again strongly recommend that the user run cabal update at the end of the resolution phase.

Furthermore, I think the whole output is quite cluttered, but I will leave that for another issue in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant