Skip to content

Commit

Permalink
stack init --solver fails if GHC_PACKAGE_PATH is present (fixes #860)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 27, 2015
1 parent d45a05a commit 5a899e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Other enhancements:

Bug fixes:

* `stack init --solver` fails if `GHC_PACKAGE_PATH` is present [#860](https://github.com/commercialhaskell/stack/issues/860)

## 0.1.3.1

Bug fixes:
Expand Down
5 changes: 4 additions & 1 deletion src/Stack/Solver.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ cabalSolver wc cabalfps constraints cabalArgs = withSystemTempDirectory "cabal-s

$logInfo "Asking cabal to calculate a build plan, please wait"

bs <- readProcessStdout (Just tmpdir) menv "cabal" args
platform <- asks getPlatform
menv' <- mkEnvOverride platform
$ Map.delete "GHC_PACKAGE_PATH" $ unEnvOverride menv
bs <- readProcessStdout (Just tmpdir) menv' "cabal" args
let ls = drop 1
$ dropWhile (not . T.isPrefixOf "In order, ")
$ T.lines
Expand Down

0 comments on commit 5a899e1

Please sign in to comment.