Skip to content

Commit 2bf17fb

Browse files
committed
Make "stack setup" recover for GHCJS build commercialhaskell#1874
1 parent cb1ad6c commit 2bf17fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Stack/Setup.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ installGHCJS si archiveFile archiveType destDir = do
848848
$logDebug $ "ziptool: " <> T.pack zipTool
849849
$logDebug $ "tar: " <> T.pack tarTool
850850
return $ do
851+
ignoringAbsence (removeDirRecur destDir)
851852
ignoringAbsence (removeDirRecur unpackDir)
852853
readInNull destDir tarTool menv ["xf", toFilePath archiveFile] Nothing
853854
innerDir <- expectSingleUnpackedDir archiveFile destDir

0 commit comments

Comments
 (0)