-
Notifications
You must be signed in to change notification settings - Fork 710
Implement v2-outdated command #9373
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
base: master
Are you sure you want to change the base?
Conversation
c9ad027
to
4bd7f60
Compare
toPackageVersionConstraint (Dependency name versionRange _) = | ||
PackageVersionConstraint name (simplifyVersionRange versionRange) | ||
|
||
genericPackageDependencies :: GenericPackageDescription -> [Dependency] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can preserve the structure of the conditionals when presenting the results to the user. E.g. we can map CondTree ConfVar [Dependency] component
into
CondTree ConfVar [OurResultForDependency] Library` and use that to form the final report.
342c092
to
6c083a9
Compare
6c083a9
to
48ccdf8
Compare
cc3602f
to
598c651
Compare
a1ac243
to
a41517e
Compare
The `Cmd*,hs` naming scheme is usually reserved for v2 commands and this is a v1 command so renaming this to make way for a v2 version of this command. Since the `v2-outdated` command does everything the `v1` version of the command does, this `Outdated.hs` module should probably be removed.
a41517e
to
1b7686e
Compare
This appears superseded by: Should we close this? |
Implement a
v2-outdated
command which is simply thev2
version of theoutdated
command.It does all the
v2
style setup in order to extract aPackageVersionConstraint
list and then calls into the v1 version of the command for the logic and IO for the results.Include the following checklist in your PR:
Bonus points for added automated tests!
Note: The diff on the file
CmdOutput.hs
is rather weird because this PR renamesCmsOutdated.hs
toOutdated.hs
and then creates a new fileCmdOutput.hs
.QA Notes
v2-outdated
command should work in an old project directory layout (a single top level<package>.cabal
file) and a new project directory with just acabal.project
file.