You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not 100% but it seems that getPackageGhcVersion is actually parsing out the GHC version that cabal-install/Cabal was built with, not the GHC version for the package.
Here's a snippet of the setup-config I have:
Saved package config for shake-0.17.8 written by Cabal-2.4.1.0 using ghc-8.4
<BLAH> exe:shake
<BLAH BLAH> /Users/adam/.stack/programs/x86_64-osx/ghc-8.6.4/bin/ghc
The text was updated successfully, but these errors were encountered:
I wrongly assumed that the version of GHC from the header of setup-config is the version of GHC that was used to build the package.
It seems that this assumption may be correct when the GHC is installed by stack (because versions of GHC and Cabal are pinned), but in general, it is wrong.
I'm not 100% but it seems that
getPackageGhcVersion
is actually parsing out the GHC version that cabal-install/Cabal was built with, not the GHC version for the package.Here's a snippet of the
setup-config
I have:The text was updated successfully, but these errors were encountered: