-
Notifications
You must be signed in to change notification settings - Fork 5
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
Don't install ghc before restoring dependencies #33
Comments
Thanks for the report. This seems pretty annoying to work around (though PRs welcome), so I'm optimistic it'll Just Work with 2.14 and would prefer to check that before doing anything. I think if we tossed a |
Sorry for the delayed response. I think there will be It's not currently available, but I think it's possible to build stack from source in its repo if you'd like to experiment. |
Since this has been an issue since the get-go, I'm comfortable leaving it open for a while longer till it's easier to experiment (e.g. until a |
I've dug into this a little more now that 2.15 is available. It seems that In order to restore a cache, we need to know the paths and key. Right now that means:
To avoid doing any of this before we've restored a cache, we can:
That just leaves On my system (Linux) this returns a directory that is under @deemp can you check that? If it does... is it worth calling |
Yes, newer I think the easiest solution is to create an issue and ask to not download GHC for Here's why (not sure whether it's correct). As I understand, there's
It's possible to configure The
So, to determine the output of |
Well, we can ignore
We could (easily) just look at The only real downside is we will be duplicating the knowledge of what the default is when the key is not specified:
The windows logic is a bit annoying, but I think that's kind of worth it to do now, even if we report a Stack Issue, rather than waiting for them. WDYT? |
Good news! It seems So we should be good. I also see that v2.15 is already the version of EDIT: hang on. I might've spoke too soon. Let me test another thing. |
I agree. We seem to have no other options until new versions of stack are available on runners. I regret a bit that I thought their fix covered more options than only |
After I had removed |
Yeah, I think I just misread the output. Alright, we'll I'll re-implement the logic for now and we can go back to |
Well, a user may write a custom file, but probably it's a rare case. |
Perhaps you know that https://github.com/mxschmitt/action-tmate allows to connect to a runner. So, you can execute some commands manually to inspect what's going on. |
That's neat! |
The new stack should be available in "a few weeks" (link). |
This is now addressed. We are coding our own logic for |
GitHub runners currently use stack 2.13.1 (e.g., Ubuntu).
Currently, the action runs
stack query compiler
and downloadsGHC
before restoring the deps cache.stack-action/action.yml
Lines 177 to 179 in ac0dd8d
stack-action/action.yml
Line 196 in ac0dd8d
In stack 2.14.0, it became possible to run
stack path
without installingGHC
(commercialhaskell/stack#6340).To restore deps, the action runs
stack path
.stack-action/action.yml
Lines 189 to 191 in ac0dd8d
When
stack 2.14.0
(or newer) is available on runners,stack path
won't install GHC.Possibly,
stack query compiler
will still install GHC. If it's the case, this command should be run after the dependencies are restored, so that this command doesn't install a GHC.The text was updated successfully, but these errors were encountered: