Skip to content

Commit d473a23

Browse files
committed
release.hs: include filenames in .sha256 files (fixes #4841)
1 parent c1f3b35 commit d473a23

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

etc/scripts/release.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,12 @@ rules global@Global{..} args = do
278278
bs <- liftIO $ do
279279
_ <- tryJust (guard . isDoesNotExistError) (removeFile out)
280280
S8.readFile (dropExtension out)
281-
writeFileChanged out (S8.unpack (digestToHexByteString (hash bs :: Digest SHA256)) ++ "\n")
281+
writeFileChanged
282+
out
283+
( S8.unpack (digestToHexByteString (hash bs :: Digest SHA256)) ++
284+
" " ++
285+
takeFileName (dropExtension out) ++
286+
"\n" )
282287

283288
releaseBinDir </> binaryName </> stackExeFileName %> \out -> do
284289
alwaysRerun

0 commit comments

Comments
 (0)