From 916a86143f7627771e9ac431aa137a0bcd7b86f3 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 28 Dec 2024 21:54:14 -0500 Subject: [PATCH] Install golang-1.22 on arm64 --- tier2/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tier2/Dockerfile b/tier2/Dockerfile index fc56b525..a628b4d6 100644 --- a/tier2/Dockerfile +++ b/tier2/Dockerfile @@ -4,7 +4,9 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ jq apt-transport-https dirmngr gnupg ca-certificates xz-utils \ $([ "$(arch)" = x86_64 ] && echo libc6-dev-i386) \ - openjdk-22-jdk-headless clang llvm ghc golang racket ruby scala nasm chicken-bin && \ + openjdk-22-jdk-headless clang llvm ghc golang"$([ "$(arch)" = aarch64 ] && echo -1.22)" racket ruby scala nasm chicken-bin && \ + if [ "$(arch)" = aarch64 ]; then update-alternatives --install /usr/bin/go go /usr/lib/go-1.22/bin/go 50 \ + --slave /usr/bin/gofmt gofmt /usr/lib/go-1.22/bin/gofmt; fi && \ ( export OPAMYES=1 OPAMJOBS=$(($(nproc) + 2)); \ apt-get install -y --no-install-recommends make m4 patch unzip libgmp-dev pkg-config && \ bash -c 'echo | sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --no-backup' && \