
#8591: Concurrent executions of ghc-pkg can cause inconstant package.cache files -------------------------------------+------------------------------------- Reporter: janm | Owner: pgj Type: bug | Status: new Priority: normal | Milestone: Component: Package | Version: 7.6.3 system | Keywords: ghc-pkg race Resolution: | Architecture: Unknown/Multiple Operating System: FreeBSD | Difficulty: Unknown Type of failure: Other | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by thomie): Not reading this thread closely, but since there's also a comment that says "copied from Cabal's Distribution.Simple.Utils", there might be a function in there now that does exactly what you need: https://github.com/haskell/cabal/blob/master/Cabal/Distribution/Simple/Utils... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8591#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler