-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the current default for --[no-]system-ghc
the most appropriate?
#6580
Comments
If History: |
Some more context, from today's #haskell-stack:matrix.org chat: sm |
I think changing the default will potentially cause so much breakage that even if it is theoretically a better default, it's probably not worth it. |
@hasufell, it was a while ago now, but can you recall your reasoning for the GHCup 'hook' script not running when |
From chat: sm Mike Pilgrem sm
Both of these are highly unintuitive to me If the doc is accurate, definitely I had a wrong mental model (or rather, I had the right, intuitive one from classic stack, and ghcup has broken it) |
Those are very different concepts and I don't think we should conflate them. The shell hook is a black box (somewhat misnamed as
|
Motivation: A discussion on Matrix about the merits and drawbacks of the current default (
--no-system-ghc
).--system-ghc
asks Stack to try and use the GHC on the path, if it exists and is the appropriate version. (Thecompiler-check:
configuration tailors what is 'appropriate') This may avoid Stack creating a duplicate GHC elsewhere (if it has not already done so).History:
The current default has applied since Stack 1.3.0 (released 2016-12-12).
(The default
compiler-check: match-minor
matches GHC X.Y.Z, but allows patch-level differences. So, in the case of GHC release candidates, GHC 9.10.0.20240413 and GHC 9.10.0.20240426 (for example) are not distinguished by default.)Certain GitHub-hosted runners come with GHC on the PATH (currently, not
macos-latest
ormacos-13
). However, that is only useful in practice if the GHC version in question is specified by a Stackage snapshot. Currently, GitHub provides GHC 9.10.1 but that is not specified by any snapshot.In the case of CI scripts, Stack provides
stack config set system-ghc [--global] true
.The text was updated successfully, but these errors were encountered: