Skip to content

Commit

Permalink
Merge pull request #226 from haskell-works/newhoggy/restore-recache-p…
Browse files Browse the repository at this point in the history
…ackage-database-step-in-sync-from-archive

Restore recache package database step in sync-from-archive
  • Loading branch information
newhoggy authored Feb 4, 2023
2 parents 2d26d33 + 9e85bad commit 7198cf3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/App/Commands/SyncFromArchive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ runSyncFromArchive opts = OO.runOops $ OO.catchAndExitFailure @ExitFailure do

DQ.succeed

CIO.putStrLn "Recaching package database"

liftIO $ GhcPkg.recache compilerContext storeCompilerPackageDbPath

failures <- liftIO $ STM.atomically $ STM.readTVar $ downloadQueue ^. the @"tFailures"

forM_ failures $ \packageId -> CIO.hPutStrLn IO.stderr $ "Failed to download: " <> packageId

ensureStorePathCleanup :: ()
=> MonadIO m
=> MonadCatch m
Expand Down

0 comments on commit 7198cf3

Please sign in to comment.