-
Notifications
You must be signed in to change notification settings - Fork 54
Doctest doesn't work if ghcup not used #30
Comments
Out of curiosity, what does the |
I don't have a good understanding of what the Haskell stuff for Github Actions actually does to set the environment up (but I suspect I'm going to have to learn it quite soon) - does it use I see from the log that the build is downloading a large chunk of pre-built packages into |
Thanks to a hint from quasicomputational, my best guess is this:
So it requires a somewhat ridiculous chain of events, but it's not impossible. If that's the case, deleting the cache should fix the issue. Unfortunately I haven't the slightest idea how one might fix this except somehow by possibly either changing the caching strategy of |
Right. If the theory's correct, this is really the collision of two issues:
|
You are right. Clearing the cache solves the problem. |
I'm keen on package maintainers avoiding things that make for non-relocatable cabal store packages where-ever possible. |
It seems it is not very uncommon. I have hit the same issue: https://github.com/composewell/streamly/pull/1100/checks?check_run_id=2819329899 . I reached the same conclusion that it might be coming from the cache, tried bumping the cache version, but it did not help. I have to confirm that though, maybe the cache somehow did not get cleared. |
It worked when I changed the cabal version 3.4 to 3.2. |
It worked with clearing the cache too, earlier I made a mistake so the cache was not cleared. |
Possibly related workaround: haskell-servant/servant@164bfe9 |
The |
This issue has been resolved, judging from the conversation. |
When running
doctest
in Github Actions, if GHC is not installed viaghcup
(for example it was already installed in the virtual environment) then thedoctest
fails in this manner:https://github.com/haskell-works/hw-aeson/pull/46/checks?check_run_id=1780850470
For some reason
doctest
expects thatghc
is found underghcup
, when it is actually elsewhere.The text was updated successfully, but these errors were encountered: