Skip to content

Commit

Permalink
Restore recache package database step in sync-from-archive
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Feb 4, 2023
1 parent 2d26d33 commit 9e85bad
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 9e85bad

Please sign in to comment.