summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilMitchell <>2019-05-19 18:43:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-05-19 18:43:00 (GMT)
commitdf0bd96a26d80fe367845be6cca856652516f407 (patch)
treed678c1a2a53e612e3f720ee5adeea341981028b7
parent85ddfa2503acb24d8db034dbdf309249c82c88b7 (diff)
version 0.18.20.18.2
-rw-r--r--CHANGES.txt4
-rw-r--r--shake.cabal2
-rw-r--r--src/Development/Shake/Internal/Derived.hs2
3 files changed, 5 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 7c4b05d..7a3cd8b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,7 +1,9 @@
Changelog for Shake (* = breaking change)
+0.18.2, released 2019-05-19
+ #678, fix serious bug in writeFileChanged
0.18.1, released 2019-05-19
- #678, fix serious bug in writeFile' - it could delete an unrelated file
+ #678, fix serious bug in writeFile', deleting the wrong file
0.18, released 2019-05-14
* Make files copied to the shared cache read-only
Delete files before writing, giving symlink/readonly safety
diff --git a/shake.cabal b/shake.cabal
index f89cc88..8d54b3e 100644
--- a/shake.cabal
+++ b/shake.cabal
@@ -1,7 +1,7 @@
cabal-version: >= 1.18
build-type: Simple
name: shake
-version: 0.18.1
+version: 0.18.2
license: BSD3
license-file: LICENSE
category: Development, Shake
diff --git a/src/Development/Shake/Internal/Derived.hs b/src/Development/Shake/Internal/Derived.hs
index f950091..7872f04 100644
--- a/src/Development/Shake/Internal/Derived.hs
+++ b/src/Development/Shake/Internal/Derived.hs
@@ -147,7 +147,7 @@ writeFileChanged name x = liftIO $ do
src <- hGetContents h
return $! src /= x
when b $ do
- removeFile_ x -- symlink safety
+ removeFile_ name -- symlink safety
writeFile name x