Comments (2)
diff -ur ./Config/Dyre.hs ../modified-dyre/Config/Dyre.hs
--- ./Config/Dyre.hs 2010-04-30 11:07:19.000000000 -0500
+++ ../modified-dyre/Config/Dyre.hs 2010-08-04 16:08:59.000000000 -0500
@@ -84,7 +84,7 @@
module Config.Dyre ( wrapMain, Params(..), defaultParams ) where
import System.IO ( hPutStrLn, stderr )
-import System.Directory ( doesFileExist, removeFile )
+import System.Directory ( canonicalizePath, doesFileExist, removeFile )
import System.Environment ( getArgs )
import Control.Monad ( when )
@@ -124,6 +124,8 @@
else do
-- Get the important paths
(thisBinary, tempBinary, configFile, cacheDir) <- getPaths params
-
thisBinary' <- canonicalizePath thisBinary
-
tempBinary' <- canonicalizePath tempBinary -- Check their modification times thisTime <- maybeModTime thisBinary
@@ -150,7 +152,7 @@
-- gone.
errorData <- getErrorString params
customExists <- doesFileExist tempBinary -
if confExists && customExists && (thisBinary /= tempBinary)
-
if confExists && customExists && (thisBinary' /= tempBinary') then launchSub errorData tempBinary else enterMain errorData
where launchSub errorData tempBinary = do
from dyre.
I understand the problem in theory, but the description of the specific setup that caused it is slightly confusing, so I haven't tested for myself that it works. But since the fix makes sense in principle and doesn't break any ordinary use patterns, it may as well be added.
Dyre v0.8.4 is uploaded to Hackage now, which contains essentially the same changes as you suggested.
At some point, it may be worthwhile to compare files based on inode number with System.Posix.Files.fileID, but since no one's complained yet, the added complexity probably isn't worth it.
from dyre.
Related Issues (20)
- Config removal not detected
- Pass GHC runtime system arguments to the binary - enables profiling
- Build failure with GHC 7.4.1 HOT 1
- Build failure in dyre-0.8.10 with GHC 7.4.1 HOT 1
- Don't use fromMaybe HOT 2
- Replace IO with MonadBase IO wherever possible HOT 1
- Replace String with Data.Text HOT 3
- Compilation is not atomic HOT 1
- strange relaunch compile error: "ghc: missing -B<dir> option" HOT 5
- Sandbox-aware ghc HOT 1
- Update hackage version HOT 6
- Dyre configuration file cannot find module HOT 5
- Include dyre in stackage HOT 2
- Make dyre cabal-sandbox and stack aware HOT 10
- 'errors.log' is kept after configuration file removal HOT 2
- Add the config dir to the include list to permit other modules. HOT 6
- changes on custom configuration is detected but not on submodule HOT 1
- Using dyre with any IO actions that need a config file written in Haskell HOT 2
- Testing checklist and feedback for 0.9.0 HOT 5
- Possible regression for Nix packages HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dyre.