Ticket #393 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Allow --preference= flags for soft constraints

Reported by: duncan Owned by:
Priority: normal Milestone: cabal-install-0.6
Component: cabal-install tool Version: 1.2.3.0
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.3 Platform:

Description

cabal install now uses soft preferences from a preferred-versions file in the hackage index. It would sometimes be useful to also be able to specify these on the command line.

It shouldn't be too hard since the solver already accepts such soft-constraints.

Change History

Changed 4 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed
Thu Dec 18 20:49:17 GMT 2008  Duncan Coutts <duncan@haskell.org>
  * Generalise the way preferences are specified to the resolver
  We still provide a default global policy, but now we give a
  list of per-package preferences which can be on the version
  or installed state. Later preferences override earlier ones.

Thu Dec 18 21:38:49 GMT 2008  Duncan Coutts <duncan@haskell.org>
  * Add a install/upgrade --preference='foo < 2' flag
  This behaves just like the preferred-versions file in the hackage index
  but it can be specified on the command line or in a config file.
Note: See TracTickets for help on using tickets.