Skip to content

Simple commands should work without ghc installed #4390

@sschuberth

Description

@sschuberth

I believe several stack sub-command like dot and ls dependencies should work without ghc installed; after all, these commands do not require compiling anything.

What I see instead when running stack --no-install-ghc --skip-ghc-check dot --external on this example project is that stack complains with

No compiler found, expected minor version match with ghc-8.2.2 (x86_64) (based on resolver setting in quickcheck-state-machine\example\stack.yaml).
To install the correct GHC into C:\Users\<name>\AppData\Local\Programs\stack\x86_64-windows\, try running "stack setup" or use the "--install-ghc" flag.

As can bee seen above, I was trying to work around that issue by specifying --no-install-ghc --skip-ghc-check, but stack is checking for ghc nonetheless.

This issue seems to be somewhat related to #4181 where even a simple clean tries to bootstrap all of ghc.

Background: We use the OSS Review Toolkit to inspect Haskell project dependencies without building them. Right now, we still need to provide ghc, wasting time & space.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions