stack config can't set system-ghc true without a compiler #2852

Closed
unhammer opened this Issue Dec 16, 2016 · 2 comments

Projects

None yet

4 participants

@unhammer

General summary/comments (optional)

stack config can't set system-ghc true without a compiler

Steps to reproduce

On Ubuntu 16.04,

Expected

~/.stack/config.yaml should say system-ghc:true

Actual

stack complains

No compiler found, expected minor version match with ghc-7.8.4 (x86_64) (based on resolver setting in /home/kiwibird/src/app/stack.yaml).
To install the correct GHC into /home/kiwibird/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag. To use your system GHC installation, run "stack config set system-ghc --global true", or use the "--system-ghc" flag.

Stack version

$ stack --version
Version 1.3.0, Git revision 99b910d3c8e183aa376cb1e6f0341d86aed6d00e (4372 commits) x86_64 hpack-0.15.0

Method of installation

  • Official binary from fpcomplete's apt repo
@borsboom borsboom added this to the P1: Must milestone Dec 16, 2016
@borsboom borsboom added the type: bug label Dec 16, 2016
@mgsloan mgsloan added a commit that referenced this issue Dec 17, 2016
@mgsloan mgsloan Changelog update for #2852 52ac1ce
@mgsloan
Collaborator
mgsloan commented Dec 17, 2016

This actually turned out to be a trivial fix!

@mgsloan mgsloan closed this Dec 17, 2016
@borsboom borsboom added a commit that referenced this issue Dec 18, 2016
@mgsloan @borsboom mgsloan + borsboom Changelog update for #2852 b14b478
@LukeHoersten
Member

@mgsloan was the default changed here? Why does this flag need to be set now instead of stack automatically searching for my system ghc first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment