Ticket #539 (new enhancement)

Opened 4 years ago

Last modified 15 months ago

add way to query package dependency graph

Reported by: ganesh Owned by:
Priority: normal Milestone: cabal-install-0.16
Component: cabal-install tool Version: HEAD
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform:

Description

I'd like to be able to list all the forward or reverse dependencies of a package, optionally recursively.

The attached patch makes a 'cabal depends' command that does this, but Duncan (quite reasonably) doesn't want a proliferation of top-level commands. Instead it should be integrated into cabal info in some appropriate way, but this probably requires some refactoring of that command first.

The attached patch could also be improved in (at least) two ways:

  • Deal with package version numbers as well as names. This involves matching the constraints on version numbers against specific version numbers.
  • Use a less naive transitive closure calculation.

Attachments

depends.patch Download (28.3 KB) - added by ganesh 4 years ago.

Change History

Changed 4 years ago by ganesh

Changed 15 months ago by kosmikus

  • milestone set to cabal-install-0.16

I definitely want something like this.

Changed 15 months ago by kosmikus

Vaguely related to #889.

Note: See TracTickets for help on using tickets.