mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
bazel: fix MacOS builds (#1680)
* allow arm64 arch * switch to shasum command
This commit is contained in:
parent
84dd25600f
commit
53d8a2d67e
@ -21,6 +21,7 @@ goarch() {
|
|||||||
case $(uname -m) in
|
case $(uname -m) in
|
||||||
x86_64) echo 'amd64' ;;
|
x86_64) echo 'amd64' ;;
|
||||||
arm) echo 'arm64' ;; # this is slightly simplified, but we only care about arm64
|
arm) echo 'arm64' ;; # this is slightly simplified, but we only care about arm64
|
||||||
|
arm64) echo 'arm64' ;;
|
||||||
*)
|
*)
|
||||||
echo 'Unknown arch' >&2
|
echo 'Unknown arch' >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -33,7 +34,7 @@ ensure_pseudo_version_tool() {
|
|||||||
get_pseudo_version_tool
|
get_pseudo_version_tool
|
||||||
fi
|
fi
|
||||||
expected=$(cat "${REPOSITORY_ROOT}/tools/pseudo_version_$(goos)_$(goarch).sha256")
|
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
|
get_pseudo_version_tool
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user