You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Thanks for maintaining this repo. I have following Dockerfile:
## Dockerfile for a haskell environmentFROM haskell:8
# Configure aptENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1
# Install haskell ide engine dependenciesRUN apt-get -y install libicu-dev libtinfo-dev libgmp-dev zlib1g-dev
RUN stack config set system-ghc --global true
RUN stack install --system-ghc hls
# Clean upRUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog
# Set the default shell to bash rather than shENV SHELL /bin/bash
When I build image I get this error:
=> CACHED [4/7] RUN stack config set system-ghc --global true 0.0s
=> ERROR [5/7] RUN stack install --system-ghc hls 2.0s
------
> [5/7] RUN stack install --system-ghc hls:
#8 0.443 Writing implicit global project config file to: /root/.stack/global-project/stack.yaml
#8 0.444 Note: You can change the snapshot via the resolver field there.
#8 1.138 Using latest snapshot resolver: lts-17.7
#8 1.905 No compiler found, expected minor version match with ghc-8.10.4 (x86_64-tinfo6) (based on resolver setting in /root/.stack/global-project/stack.yaml).
#8 1.905 To install the correct GHC into /root/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag. To use your system GHC installation, run "stack config set system-ghc --global true", or use the "--system-ghc" flag.
------
I can workaround this issue by installing 8.4.10 ghc via stack, but it would be nice if this would work out of the box.
The text was updated successfully, but these errors were encountered:
I just did a quick test and this is failing with a different error. Regardless, I believe you error was because you only requested haskell:8 and probably had 8.8 cached. If you instead specify haskell:8.10 all the GHC versions should match and you will get past this point.
Hi. Thanks for maintaining this repo. I have following Dockerfile:
When I build image I get this error:
I can workaround this issue by installing 8.4.10 ghc via stack, but it would be nice if this would work out of the box.
The text was updated successfully, but these errors were encountered: