Skip to content

Commit 15ea947

Browse files
committed
Undo remove executeDir
1 parent 3eaf5d4 commit 15ea947

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Spago/Build.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ runBackend maybeBackend RunDirectories{ sourceDir, executeDir } moduleName maybe
343343
]
344344
nodeCmd outputPath'= "node -e \"" <> nodeContents outputPath' <> "\" " <> nodeArgs
345345
nodeAction outputPath' = do
346+
-- cd to executeDir in case it isn't the same as sourceDir
347+
logDebug $ "Executing from: " <> displayShow @FilePath executeDir
348+
Turtle.cd executeDir
346349
-- We build a process by hand here because we need to forward the stdin to the backend process
347350
let processWithStdin = (Process.shell (Text.unpack $ nodeCmd outputPath')) { Process.std_in = Process.Inherit }
348351
Turtle.system processWithStdin empty >>= \case

0 commit comments

Comments
 (0)