Skip to content

Commit

Permalink
Merge pull request #3924 from ezyang/pr/legacy-install-no-exes
Browse files Browse the repository at this point in the history
Don't solve for executables in legacy install codepath.
  • Loading branch information
ezyang committed Oct 2, 2016
2 parents 7378066 + bf54fac commit c4e91c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cabal-install/Distribution/Client/Install.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ import Distribution.Client.JobControl

import qualified Distribution.Solver.Types.ComponentDeps as CD
import Distribution.Solver.Types.ConstraintSource
import Distribution.Solver.Types.Settings
import Distribution.Solver.Types.LabeledPackageConstraint
import Distribution.Solver.Types.OptionalStanza
import qualified Distribution.Solver.Types.PackageIndex as SourcePackageIndex
Expand Down Expand Up @@ -423,6 +424,10 @@ planPackages comp platform mSandboxPkgInfo solver

. (if reinstall then reinstallTargets else id)

-- Don't solve for executables, the legacy install codepath
-- doesn't understand how to install them
. setSolveExecutables (SolveExecutables False)

$ standardInstallPolicy
installedPkgIndex sourcePkgDb pkgSpecifiers

Expand Down

0 comments on commit c4e91c9

Please sign in to comment.