-
Notifications
You must be signed in to change notification settings - Fork 805
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
GHC gets nuked from docker images #7636
Comments
|
Thanks for raising the issue. I haven't been using the docker images for years but the description seems relevant. The curators team will take a look at this |
It seems like images after version 19 are completely broken: https://www.stackage.org/lts-20.26
9.2.8 <> 9.2.5 |
#7397 is also relevant here |
Yeah, the decision was to simply deprecate those stack-build images (which I guess is already done on accident since they're broken). @dpwiz and @senysenyseny16 , can you describe how you use these images (if you do) so that we can figure out how to keep supporting your workflows? |
Yes the Docker Hub builds are actually intended long deprecated - I guess we "forgot" to turn them off yet. The current (ghcr) builds are built in github - not very sure how useful they are, but they have been available for a good while now:- we probably never announced them formally... See https://github.com/commercialhaskell/stackage/pkgs/container/stackage%2Fbuild |
Well a simple solution would be to fix the "find rm" line as mentioned - hopefully it could be done better: not convinced that nuking all the rest of ~/.stack/ is optimal anyway? |
I pushed the tweak you suggested @dpwiz (I note this path is also listed in |
Actually looking at the stack-build docker hub images I am further confused: some seem to be big (> 3GB) and others small (< 1GB) - what is the actual expectation? (I write "confused" since most recent images are also large: https://hub.docker.com/r/fpco/stack-build/tags?page=1) I think the GHCR image may be big too: https://github.com/commercialhaskell/stackage/pkgs/container/stackage%2Fbuild/319121885?tag=lts23 which is desired iirc (ie it contains ghc)? Could you try using the GitHub image instead? |
Using an image from e.g.
fpco/stack-build:lts-22.43
results in a 11.2GB download that can't actually build Haskell projects due to missing GHC.I don't know when did that start, but I found that the current
lts-23.0
Dockerfile has this line:However if you enter that container and run
stack setup
, theprograms
would contain./programs/x86_64-linux/ghc-tinfo6-9.6.6/*
instead. That does not quite match the glob and the installed compiler getsrm
d.The path needs to be updated to either
ghc-tinfo6-$GHC_VERSION
orghc*-$GHC_VERSION
.The text was updated successfully, but these errors were encountered: