-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Description
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.