Skip to content

Commit e1bda13

Browse files
committed
Extension needs to be valid
1 parent a96eb9e commit e1bda13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Stack/Build/Execute.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,8 @@ singleTest topts testsToRun ac ee task installedMap = do
19341934
fp' = eeTempDir ee </> testGhcEnvRelFile
19351935
-- Add a random suffix to avoid conflicts between parallel jobs
19361936
-- See https://github.com/commercialhaskell/stack/issues/5024
1937-
randomSuffix <- ("-"<>) . show <$> liftIO (randomIO :: IO Int)
1937+
randomInt <- liftIO (randomIO :: IO Int)
1938+
let randomSuffix = "." <> (show $ abs randomInt)
19381939
fp <- toFilePath <$> addExtension randomSuffix fp'
19391940
let snapDBPath = toFilePathNoTrailingSep (bcoSnapDB $ eeBaseConfigOpts ee)
19401941
localDBPath = toFilePathNoTrailingSep (bcoLocalDB $ eeBaseConfigOpts ee)

0 commit comments

Comments
 (0)