-
Notifications
You must be signed in to change notification settings - Fork 54
Remove cabal update from setup upon request #29
Comments
Aside from this, I've see the |
Would it make sense to change it to |
Possibly. Does that avoid cloning all the repositories? |
I thought it would, but a quick test shows it does not. :-( |
This works |
But perhaps not on windows |
I've gotta say, I truly appreciate your ability to run headfirst into every corner case known to man. It's quite the talent :) Running cabal update has been left in thus far because it was something that was done in the action originally and I didn't want to make a breaking change without bumping the major version. Now that I can commit to the repository and have better control over versioning, removing cabal update from the action makes sense; I haven't actually seen any workflows that don't run cabal update on their own, anyway. That all said.
ughhhhhhhh (╯°□°)╯︵ ┻━┻ |
I'd also appreciate the ability to disable Why I want this: when I let stack install ghc and then cache |
Oh, turns out I can just do:
(full context: xmonad/X11@ebaff90) Wouldn't be as simple if I wanted this to work on Windows and MacOS as well, but those aren't relevant for xmonad, so I'm fine for the time being. :-) |
Since actions/runner-images#3268, the GHC PPA is no longer enabled by default. :-( (It would be better to use the haskell/actions/setup action, but it insists on doing `cabal update` even if all we need is to install GHC and Stack, which adds noticeable delay: haskell/actions#29)
Since actions/runner-images#3268, the GHC PPA is no longer enabled by default. :-( (It would be better to use the haskell/actions/setup action, but it insists on doing `cabal update` even if all we need is to install GHC and Stack, which adds noticeable delay: haskell/actions#29)
Since actions/runner-images#3268, the GHC PPA is no longer enabled by default. :-( (It would be better to use the haskell/actions/setup action, but it insists on doing `cabal update` even if all we need is to install GHC and Stack, which adds noticeable delay: haskell/actions#29)
@liskin: I think @hazelweakly wrote:
That would mean this cannot appear before Fixing the OP is a simple as removing one line: actions/setup/src/setup-haskell.ts Line 76 in 04b033e
PR: |
Well there's a reason I typeset the "without also disabling ghc installation" part in bold… Anyway, all this stopped being relevant (for me) with the hvr-ghc PPA no longer being maintained. Having the haskell GH action install ghc via ghcup is no faster than having stack install it, so I can just use the GHA-provided stack and ignore this action entirely. |
@newhoggy wrote:
In simple CI, you'd want |
haskell#146) This commit introduces a new boolean input `cabal-update` that defaults to `true`. If set to `false`, the `cabal update` step will be skipped. The new flag `cabal-update` is proper boolean, it only accepts the YAML 1.2 truth values `true` and `false` (also in captial and uppercase). This is contrast to other "boolean" flags that are "unset" by default and can be "set" with any non-empty string. To test that `cabal update` happens, this commit also introduces a new Haskell test project into CI that depends on a common Hackage package (`base-orphans`). Original commits: * Fix haskell#29: new input 'cabal-update: false' to turn off 'cabal update' * Test 'cabal-update: false' * README: Add 'cabal-update' to table of inputs * Accept YAML 1.2 booleans as values for 'cabal-update' * CI: test 'cabal-update: true': project with Hackage dependency * Default value for 'cabal-update' * CI: use cabal_update (underscore) in matrix * Fixup: project with Hackage dependency * Work around haskell#158 * Extra clarification of boolean vs "boolean" inputs
I feel like
cabal update
should not be part of the setup. This is becausecabal update
will do project specific work and sometimes fail because of problems specific to the project.For example:
Aside from this, the project may want to do
cabal update
after configuring the project, which duplicates work.The text was updated successfully, but these errors were encountered: