-
Notifications
You must be signed in to change notification settings - Fork 822
Open
Description
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:
find . -type f -not -path './snapshots/*/share/*' -and -not -path "./programs/x86_64-linux/ghc-$GHC_VERSION/*" -exec rm '{}' \; && \
However if you enter that container and run stack setup
, the programs
would contain ./programs/x86_64-linux/ghc-tinfo6-9.6.6/*
instead. That does not quite match the glob and the installed compiler gets rm
d.
The path needs to be updated to either ghc-tinfo6-$GHC_VERSION
or ghc*-$GHC_VERSION
.
senysenyseny16 and mihaimaruseac