chore: Fix installgo_mac.sh using correct hash (#12002)

This commit is contained in:
Sebastian Spaink 2022-10-12 16:19:29 -05:00 committed by GitHub
parent edd5994988
commit b3fdc39c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -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.)