Ticket #490 (closed defect: fixed)
cabal unpack gives bad error message for unsatisfiable constraints
| Reported by: | duncan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | cabal-install-0.6 |
| Component: | cabal-install tool | Version: | 1.6.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | very easy (<1 hour) | |
| GHC Version: | Platform: |
Description
The simple use case works fine:
$ cabal unpack HaXml Downloading HaXml-1.13.3... Unpacking HaXml-1.13.3...
But we also allow constraints and that does not necessarily work:
$ cabal unpack HaXml-1.19.6 cabal: List.maximumBy: empty list
The problem is that the index does not contain HaXml-1.19.6. After a cabal update it is fine. In general this would happen for any user-supplied version constraint that turns out to be unsatisfiable.
The function resolvePackages in Distribution.Client.Unpack does not consider the possibility that a dependency may be unsatisfiable.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

