Skip to content

Commit a4c9b40

Browse files
committed
try fix writeFileAtomic with replaceFile
1 parent 54f0e09 commit a4c9b40

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Cabal-syntax/src/Distribution/Utils/Generic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ writeFileAtomic targetPath content = do
192192
LBS.hPut handle content
193193
hClose handle
194194
Exception.catch
195-
(renameFile tmpPath targetPath)
195+
(replaceFile tmpPath targetPath)
196196
( \(_ :: Exception.SomeException) -> do
197197
copyFile tmpPath targetPath
198198
removeFile tmpPath

cabal.project

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ package cabal-install
1212

1313
package Cabal
1414
flags: +git-rev
15+
16+
source-repository-package
17+
type: git
18+
location: https://github.com/zlonast/win32.git
19+
tag: 1805af5af1db5131b23b14edf0e2ba8c16e6710f
20+
21+
source-repository-package
22+
type: git
23+
location: https://github.com/zlonast/directory.git
24+
tag: e67c28da0f06d82d1f19dfcc2e0fb51e45a8399b

0 commit comments

Comments
 (0)