Merge pull request #8647 from heitbaum/go

jammy/Dockerfile needs to include the symbolic links for go-1.21
This commit is contained in:
Christian Hewitt 2024-02-22 17:13:13 +04:00 committed by GitHub
commit 3e044ab6e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,10 @@ RUN apt-get install -y \
unzip diffutils lzop make file g++-12 xfonts-utils xsltproc default-jre-headless python3 \
libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl rdfind \
golang-1.21-go git openssh-client \
--no-install-recommends
--no-install-recommends \
&& ln -s /usr/lib/go-1.21 /usr/lib/go \
&& ln -s /usr/lib/go-1.21/bin/go /usr/bin/go \
&& ln -s /usr/lib/go-1.21/bin/gofmt /usr/bin/gofmt
RUN if [ "$(uname -m)" = "aarch64" ]; then \
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' > /etc/apt/sources.list.d/amd64.list; \