-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Labels
Milestone
Description
In a project where my build is failing, I'm trying to inspect the intermediate files that GHC generates.
I tried
stack build --ghc-options=-keep-tmp-files
but it doesn't work, because while GHC doesn't delete its temp files, stack does.
I think it's because of this:
stack/src/Stack/Build/Execute.hs
Lines 326 to 327 in b48f18f
| withExecuteEnv bopts boptsCli baseConfigOpts locals globalPackages snapshotPackages localPackages inner = | |
| withSystemTempDir stackProgName $ \tmpdir -> do |
Is there a way I can convince stack to keep the temporary directory for inspection? If not, I'd like to feature request that.