Skip to content

stack upgrade --git fails if correct GHC is not installed #797

@CRogers

Description

@CRogers

I just tried doing stack upgrade --git from stack 0.1.3.1. It gave the following error:

GHC version mismatched, found 7.10.1 (x86_64), but expected version 7.10.2 (x86_64) (based on
resolver setting in /var/folders/gx/7lt1gq996118d06q7g9ft7dd080grz/T/stack-upgrade1676/stack/stack.yaml).
Try running stack setup

It should probably run stack setup if you don't have the correct GHC installed.


On a side note, why doesn't stack build/install/test/etc automatically download the correct GHC for you anymore? One of the really cool things about stack was you literally run one command to get going and stack handles everything for you. The existence of stack setup seems to complicate this and leads to situations like above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions