From a199e29dca07d75aa3a6b6d0397674fb75532a6d Mon Sep 17 00:00:00 2001 From: Vlad Durnea Date: Sat, 31 Oct 2026 08:55:35 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20rm=20-rf=20the=20base-image=20GOROOT=20b?= =?UTF-8?q?efore=20extract=20=E2=80=94=20overlaying=20two=20Go=20versions?= =?UTF-8?q?=20corrupts=20the=20stdlib=20(duplicate=20declarations)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 8b72565..582d5a4 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,7 @@ runs: aarch64|arm64) arch=arm64 ;; *) echo "better-setup-go: unsupported arch $(uname -m)" >&2; exit 1 ;; esac + rm -rf /usr/local/go # a base-image GOROOT under the same path corrupts on overlay curl -fsSL "https://go.dev/dl/go${v}.linux-${arch}.tar.gz" | tar -xz -C /usr/local ln -sf /usr/local/go/bin/go /usr/local/bin/go ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt