jesicabaxter / ndmitchell

Automatically exported from code.google.com/p/ndmitchell
0 stars 0 forks source link

Shake does not automatically create .shake directory #546

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
[brent@archimedes:~]$ mkdir shake-test
[brent@archimedes:~]$ cd shake-test
[brent@archimedes:~/shake-test]$ cat > Shake.hs
import Development.Shake

main :: IO ()
main = shake shakeOptions $ do
  want ["test2"]
  "test2" *> \out -> do
    need ["test1"]
    copyFile' "test1" out
[brent@archimedes:~/shake-test]$ touch test1
[brent@archimedes:~/shake-test]$ ghc --make Shake
[1 of 1] Compiling Main             ( Shake.hs, Shake.o )
Linking Shake ...
[brent@archimedes:~/shake-test]$ ./Shake
Shake: .shake: canonicalizePath: does not exist (No such file or directory)
[brent@archimedes:~/shake-test]$ mkdir .shake
[brent@archimedes:~/shake-test]$ ./Shake
# test2
# test1

Using the latest version of shake (0.2.10) on arch linux.

Original issue reported on code.google.com by byor...@gmail.com on 19 May 2012 at 4:37

GoogleCodeExporter commented 8 years ago
I put an improvement in 0.2.10 that went wrong only on Linux. I've backed it 
out and release 0.2.11, and will come out with 0.2.12 sometime later tonight 
with the fix done properly. In the meantime, 0.2.11 or 0.2.9 are recommended.

Original comment by ndmitch...@gmail.com on 19 May 2012 at 4:44

GoogleCodeExporter commented 8 years ago
Thanks, 0.2.11 seems to work fine.

Original comment by byor...@gmail.com on 19 May 2012 at 5:10

GoogleCodeExporter commented 8 years ago
I rewrote the storage layer from scratch over the weekend so the bug that 
0.2.10 fixed has now gone entirely, and no longer exists (not fixed, just 
entirely changed so it no longer occurs). Therefore need to track reapplying 
the fix.

Released in 0.2.11.

Original comment by ndmitch...@gmail.com on 28 May 2012 at 9:47