From b3fdc39c532253ec442cfb8dd68dcb536ca88710 Mon Sep 17 00:00:00 2001 From: Sebastian Spaink <3441183+sspaink@users.noreply.github.com> Date: Wed, 12 Oct 2022 16:19:29 -0500 Subject: [PATCH] chore: Fix installgo_mac.sh using correct hash (#12002) --- scripts/installgo_mac.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/installgo_mac.sh b/scripts/installgo_mac.sh index 04f99b894..5f6d8cd43 100644 --- a/scripts/installgo_mac.sh +++ b/scripts/installgo_mac.sh @@ -4,18 +4,15 @@ set -eux ARCH=$(uname -m) GO_VERSION="1.19.2" -# To easily find and replace the hashes -# shellcheck disable=SC2034 GO_VERSION_SHA_arm64="35d819df25197c0be45f36ce849b994bba3b0559b76d4538b910d28f6395c00d" # from https://golang.org/dl -# shellcheck disable=SC2034 GO_VERSION_SHA_amd64="16f8047d7b627699b3773680098fbaf7cc962b7db02b3e02726f78c4db26dfde" # from https://golang.org/dl if [ "$ARCH" = 'arm64' ]; then GO_ARCH="darwin-arm64" - GO_VERSION_SHA=GO_VERSION_SHA_arm64 + GO_VERSION_SHA=${GO_VERSION_SHA_arm64} elif [ "$ARCH" = 'x86_64' ]; then GO_ARCH="darwin-amd64" - GO_VERSION_SHA=GO_VERSION_SHA_amd64 + GO_VERSION_SHA=${GO_VERSION_SHA_amd64} fi # This path is cachable. (Saving in /usr/local/ would cause issues restoring the cache.)