Skip to content

Commit e72ee4f

Browse files
committed
work with cabal 3.8
1 parent 02cd189 commit e72ee4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

exes/BuildClient.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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 _ [] = []

0 commit comments

Comments
 (0)