-
Notifications
You must be signed in to change notification settings - Fork 54
Neutral in the choice of build tools #12
Comments
I think this is the question to Stack, but it already has this option. You can use: stack ... --system-ghc From help:
Regarding the initial question, I am not sure if this is what you mean, but in the action, there is already this option:
|
Yes, I know it can be set via this option from CLI or from the local/global configuration. Yet, it will just make life easier by setting up a global stack configuration altogether via this action directly.
Hum, it looks so. The description is confusing to me, since it is not clear what would happen if I have |
Right, Lines 96 to 106 in 0386b0a
It will be really great if there are options
so that these options will not break existing workflows but add enough flexibility. In this case, |
This has actually come up before. At the time, the runner was correctly synced with the latest version of cabal, so there was no runtime hit to install it and what I did was just prevented cabal-update from running if stack was enabled, which wasn't necessarily the most correct solution, but it was the most minimal change. I would like to improve the situation, though; I've always intended for this action to be neutral in build tool choice. Splitting out stack-no-global into its two separate options and leaving it as the shortcut to enable both makes sense to me. How about this addition to action.yml? enable-cabal:
required: false
description: 'If specified, will install the specified version of cabal-install globally'
enable-ghc:
required: false
description: 'If specified, will install the specified version of GHC globally'
default: 'true'
stack-use-system-ghc:
required: false
description: 'If specified, enable-ghc must be set. Will configure stack to use the globally installed GHC.'
|
Thanks! That looks great to me. Regarding |
Glad to hear it! I'll implement that and have it merged in after the |
Disabling @jared-w : Any progress on this?
This PR (#11) looks stalled. Is it a prerequisite? |
It is not actually a prerequisite. At the time, the PR wasn't stalled and I didn't want to cause a lot of churn work. But, well, here we are :) I'd welcome a PR to implement this as I can't promise any time in the next few weeks, but I'm hoping to have some more time in October to clean things up once my life settles down a bit. |
It does not seem necessary to set up cabal whenever this action is used, if the intended build tool is stack. Setting up
cabal
is currently costly (about 30s), since the action downloads the version 3.2 of cabal instead of using the one 3.4 provided by runner.Also, it will be nice to have an option for stack to choose the system GHC by default.
The text was updated successfully, but these errors were encountered: