File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,9 @@ buildOnce opts pkgs = keepGoing $ do
474474 config <- readConfig opts
475475 notice verbosity " Initialising"
476476
477+ handleDoesNotExist () $
478+ removeDirectoryRecursive $ installDirectory opts
479+
477480 updatePackageIndex
478481 -- Due to caching sometimes the package repository state may lag behind the
479482 -- documentation index. Consequently, we make sure that the packages we are
@@ -591,7 +594,8 @@ processPkg verbosity opts config docInfo = do
591594 createDirectoryIfMissing True $ resultsDirectory opts
592595 notice verbosity $ " Writing cabal.project for " ++ display (docInfoPackage docInfo)
593596 let projectFile = installDirectory opts </> " cabal.project"
594- writeFile projectFile $ " packages: " ++ show (docInfoTarGzURI config docInfo)
597+ cabal opts " unpack" [show (docInfoTarGzURI config docInfo)] Nothing
598+ writeFile projectFile $ " packages: */*.cabal" -- ++ show (docInfoTarGzURI config docInfo)
595599
596600 setTestOutcome :: String -> [String ] -> [String ]
597601 setTestOutcome _ [] = []
You can’t perform that action at this time.
0 commit comments