[Hackage] #770: cabal is not reading or respecting ~/.cabal/config

#770: cabal is not reading or respecting ~/.cabal/config ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: minor | Keywords: cabal config global directories Difficulty: unknown | Ghcversion: 6.12.3 Platform: Linux | ----------------------------+----------------------------------------------- I changed my ~/.cabal/config file to keep global packages under /usr/local/lib/haskell and /usr/local/share/haskell to avoid cluttering the main /usr/local/lib and /usr/local/share/doc directories. ghc-pkg finds them just fine, and ghc-pkg recache works as expected. However, when I do 'cabal install whatever --global' it still throws everything into the old default directories, and more distressingly it isn't updating the access timestamp on ~/.cabal/config (as revealed by ls -u.) cabal --version reports 0.8.2 using library 1.8.0.6, nothing else unusual about my setup. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/770 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#770: cabal is not reading or respecting ~/.cabal/config ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: minor | Keywords: cabal config global directories Difficulty: unknown | Ghcversion: 6.12.3 Platform: Linux | ----------------------------+----------------------------------------------- Comment(by duncan): This is quite peculiar. I assume it is something odd in your particular setup or situation, since cabal definitely does read its config file (or very little would work for anyone). Double check a few things: * that your ~/.cabal/config file is readable. * are access timestamps on your system accurate? (may systems are configured with the `noatime` mount option). If you're sure it's not reading it at all, check with `strace`. Attaching your `~/.cabal/config` to this ticket might give us more clues. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/770#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage