Skip to content

Commit 8dd0db7

Browse files
committed
ci: fix "LC_ALL: cannot change locale (en_US.UTF-8)" in Guix container
1 parent 187fe17 commit 8dd0db7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

contrib/containers/guix/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ RUN apt-get update && \
1818
sudo \
1919
wget \
2020
xz-utils && \
21-
rm -rf /var/lib/apt/lists/*
21+
rm -rf /var/lib/apt/lists/*; \
22+
targetLocale="en_US.UTF-8"; \
23+
locale-gen ${targetLocale} && \
24+
update-locale LC_ALL=${targetLocale} && \
25+
update-locale LANG=${targetLocale};
2226

2327
ARG guix_download_path=ftp://ftp.gnu.org/gnu/guix
2428
ARG guix_version=1.4.0
@@ -30,8 +34,7 @@ ENV PATH="/usr/local/bin:/usr/local/guix/current/bin:$PATH"
3034

3135
# Application Setup
3236
# https://guix.gnu.org/manual/en/html_node/Application-Setup.html
33-
ENV GUIX_LOCPATH="/usr/local/guix/profile" \
34-
LC_ALL="en_US.UTF-8"
37+
ENV GUIX_LOCPATH="/usr/local/guix/profile"
3538

3639
RUN guix_file_name=guix-binary-${guix_version}.$(uname -m)-linux.tar.xz && \
3740
eval "guix_checksum=\${guix_checksum_$(uname -m)}" && \

0 commit comments

Comments
 (0)