Skip to content

Commit 42b3b24

Browse files
committed
Remove stray temp file
1 parent 7cc148d commit 42b3b24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Stackage/Database/Cron.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,12 +823,16 @@ buildAndUploadHoogleDBs doNotUpload = do
823823
-- stackage-server downloads its own version separately.
824824
mfp <- singleRun locker snapName
825825
case mfp of
826-
Just _ -> do
826+
Just fp -> do
827827
-- Something bad must have happened: we created the hoogle db
828828
-- previously, but didn't get to record it as available.
829829
logWarn $ "Unregistered hoogle database found for: " <> display snapName
830830
<> ". Registering now."
831831
void $ insertH snapshotId
832+
-- FIXME: For now we need to delete this file we just
833+
-- downloaded. We probably shouldn't download it in the
834+
-- first place, though.
835+
liftIO $ removeFile fp
832836
Nothing -> do
833837
logInfo $ "Current hoogle database does not yet exist in the bucket for: " <> display snapName
834838
-- NB: createHoogleDB will fail if something goes wrong.

0 commit comments

Comments
 (0)