Steps to reproduce
- Install latest Stack from master (1bbed48)
- Run
stack path or any other command
Expected
The command to succeed
Actual
Get an error along the lines of:
Executable named ghc not found on path: [...]
Stack version
$ stack --version
Version 1.10.0, Git revision 1bbed48cf22ecc7a3fa3ed230e1cc6354fdf809f (dirty) (6717 commits) x86_64 hpack-0.31.1
More info
The hashSourceMapData function is calling proc compilerExe ["--info"] readProcess, which seems to be where this error message is coming from. I don't know why Stack isn't using the modified process execution environment to find the appropriate GHC.