Ticket #307 (closed enhancement: worksforme)

Opened 5 years ago

Last modified 5 years ago

Allow specifying alternative source and target package databases other than --user and --global

Reported by: fons Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.2.3.0
Severity: normal Keywords:
Cc: Difficulty: normal
GHC Version: 6.8.2 Platform:

Description

Sometimes, it is useful to use alternative target/source package databases (e.g. for testing that the installation of a package with custom hooks works, without poisoning the global or user databases).

GHC allows doing that through ghc's and ghc-pkg's -package-conf flag. However, there's no equivalent in Cabal.

Thus, I suggest adding new -package-conf flag to the configure, install and register commands.

Change History

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to worksforme

This already exists: ./Setup configure --package-db=PATH

Note: See TracTickets for help on using tickets.