-
Notifications
You must be signed in to change notification settings - Fork 709
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
Draft:Implement v2-outdated command for cabal-install #10878
base: master
Are you sure you want to change the base?
Conversation
This commit updates the outdated command to the new v2 architecture: - Transform the old `outdated` command into a new v2-style command `v2-outdated` - Support three modes of operation: - Check for outdated dependencies in v1-style freeze file - Check for outdated dependencies in project context (cabal.project & cabal.project.freeze) - Check for outdated dependencies in local packages Since the `cabal outdated` command now supports the v2-architecture, you can request to run the `v2-outdated` command on any target. I also introduced the `resolveTargetsFromLocalPackages` which resolves which local packages targets refer to without having to run the solver. This will be useful for `cabal check` as well. A change in behaviour from before is that the package description is flattened, so all bounds will be warned about rather than those in conditional branches being ignored. Fixes #8283
So I did a first try:
So, great improvement over the status quo already, thanks! Wishlist:
|
I agree with this, but it's the same how
Yes, I can implement this, I just ran out of steam for this initial patch. Thanks for the feedback. |
This commit updates the outdated command to the new v2 architecture:
outdated
command into a new v2-style commandv2-outdated
Since the
cabal outdated
command now supports the v2-architecture, you can request to run thev2-outdated
command on any target.I also introduced the
resolveTargetsFromLocalPackages
which resolves which local packages targets refer to without having to run the solver. This will be useful forcabal check
as well.A change in behaviour from before is that the package description is flattened, so all bounds will be warned about rather than those in conditional branches being ignored.
Fixes #8283
Please read Github PR Conventions and then fill in one of these two templates.
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significant
in the changelog file.Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
Include the following checklist in your PR: