Ticket #6112 (closed bug: invalid)

Opened 12 months ago

Last modified 12 months ago

ghc-pkg ignores --global-conf if --package-conf is set

Reported by: luite Owned by: pcapriotti
Priority: normal Milestone:
Component: Compiler Version: 7.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I'm working on ghcjs, which uses ghc-pkg with custom database locations. When both --global-conf and --package-conf are specified, the former is ignored

 http://hpaste.org/68699

If this is the expected behaviour, what's the correct way to set the location for both the global and user db?

Change History

Changed 12 months ago by pcapriotti

  • owner set to pcapriotti
  • difficulty set to Unknown

Changed 12 months ago by pcapriotti

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

This is the correct (and documented) behavior. When any *-conf option is used, the global and user package dbs are not used, unless explicitly selected with the --global and --user flags respectively.

So, just add --global to the command line in your example to get the desired behavior.

Note: See TracTickets for help on using tickets.