File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
cabal-store-check/src/CabalStoreCheck
cabal-store-gc/src/CabalStoreGC Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,15 @@ checkConsistency tracer opts = do
195195 void $ runProcessCheck tracer storeDir ghcPkg
196196 [ " recache"
197197 , packageDbFlag
198+ , " --global-package-db=" <> toFilePath (ghcGlobalDb ghcInfo)
198199 ]
199200
200201 -- and run vanilla ghc-pkg check on the db
201202 void $ runProcessOutput tracer storeDir ghcPkg
202203 [ " check"
203204 , packageDbFlag
204205 , " --simple-output"
206+ , " --global-package-db=" <> toFilePath (ghcGlobalDb ghcInfo)
205207 ]
206208
207209-------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -149,13 +149,15 @@ doCollect tracer opts = do
149149 void $ runProcessCheck tracer storeDir ghcPkg
150150 [ " recache"
151151 , packageDbFlag
152+ , " --global-package-db=" <> toFilePath (ghcGlobalDb ghcInfo)
152153 ]
153154
154155 -- and run vanilla ghc-pkg check on the db
155156 void $ runProcessOutput tracer storeDir ghcPkg
156157 [ " check"
157158 , packageDbFlag
158159 , " --simple-output"
160+ , " --global-package-db=" <> toFilePath (ghcGlobalDb ghcInfo)
159161 ]
160162
161163flippedFoldlM :: (Foldable f , Monad m ) => f a -> b -> (b -> a -> m b ) -> m b
You can’t perform that action at this time.
0 commit comments