mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-24 04:00:51 -05:00
bazel: fix MacOS builds (#1680)
* allow arm64 arch * switch to shasum command
This commit is contained in:
parent
84dd25600f
commit
53d8a2d67e
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue