Skip to content

stack solver should work with ghc- resolver #3397

Closed

Description

@snoyberg

One side effect of the extensible snapshots overhaul was relying on installed GHCs for global package information. Ignoring a lot of intermediate details, this led to a situation where, today, stack init --resolver ghc-8.0.2 --solver fails, because it doesn't know that GHC contains base.

Solution: when a ghc resolver is used, we need to install that GHC version before running the solver, and properly load global package information. We should probably do this in all cases that an explicit resolver is used, and only use global package guessing when doing a plain stack init, in order to avoid downloading a dozen GHC versions while testing out different snapshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions