Skip to content

GHC gets nuked from docker images #7636

@dpwiz

Description

@dpwiz

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 rmd.

The path needs to be updated to either ghc-tinfo6-$GHC_VERSION or ghc*-$GHC_VERSION.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions