From 53d8a2d67e9725d069a226378207cf3e33aacdad Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Wed, 26 Apr 2023 08:54:20 +0200 Subject: [PATCH] bazel: fix MacOS builds (#1680) * allow arm64 arch * switch to shasum command --- tools/workspace_status.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/workspace_status.sh b/tools/workspace_status.sh index 7b624db2b..69fdd106b 100755 --- a/tools/workspace_status.sh +++ b/tools/workspace_status.sh @@ -21,6 +21,7 @@ goarch() { case $(uname -m) in x86_64) echo 'amd64' ;; arm) echo 'arm64' ;; # this is slightly simplified, but we only care about arm64 + arm64) echo 'arm64' ;; *) echo 'Unknown arch' >&2 exit 1 @@ -33,7 +34,7 @@ ensure_pseudo_version_tool() { get_pseudo_version_tool fi expected=$(cat "${REPOSITORY_ROOT}/tools/pseudo_version_$(goos)_$(goarch).sha256") - if ! sha256sum -c --status <(echo "${expected} ${REPOSITORY_ROOT}/tools/pseudo-version"); then + if ! shasum -a 256 -c --status <(echo "${expected} ${REPOSITORY_ROOT}/tools/pseudo-version"); then get_pseudo_version_tool fi }