From 8dd0db7de98d8e65260d08cdc900455294834f6d Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Fri, 22 Nov 2024 06:35:50 +0000 Subject: [PATCH] ci: fix "LC_ALL: cannot change locale (en_US.UTF-8)" in Guix container --- contrib/containers/guix/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/contrib/containers/guix/Dockerfile b/contrib/containers/guix/Dockerfile index 4b09a24c12..9039147011 100644 --- a/contrib/containers/guix/Dockerfile +++ b/contrib/containers/guix/Dockerfile @@ -18,7 +18,11 @@ RUN apt-get update && \ sudo \ wget \ xz-utils && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/*; \ + targetLocale="en_US.UTF-8"; \ + locale-gen ${targetLocale} && \ + update-locale LC_ALL=${targetLocale} && \ + update-locale LANG=${targetLocale}; ARG guix_download_path=ftp://ftp.gnu.org/gnu/guix ARG guix_version=1.4.0 @@ -30,8 +34,7 @@ ENV PATH="/usr/local/bin:/usr/local/guix/current/bin:$PATH" # Application Setup # https://guix.gnu.org/manual/en/html_node/Application-Setup.html -ENV GUIX_LOCPATH="/usr/local/guix/profile" \ - LC_ALL="en_US.UTF-8" +ENV GUIX_LOCPATH="/usr/local/guix/profile" RUN guix_file_name=guix-binary-${guix_version}.$(uname -m)-linux.tar.xz && \ eval "guix_checksum=\${guix_checksum_$(uname -m)}" && \