Skip to content

Commit 3b000c4

Browse files
committed
Fix MacOS missing the sha256sum command in CI
1 parent b6e89c4 commit 3b000c4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

distro/relnotes.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def print_rel_notes(*, name, version, archive):
77
cmd = """
88
last_rel=$$(git describe --tags --abbrev=0)
99
changelog=$$(/usr/bin/git log tags/$$last_rel..HEAD --format=oneline --invert-grep --grep 'ignore-relnotes' --)
10-
sha=$$(/usr/bin/sha256sum $(SRCS) | cut -d ' ' -f1)
10+
sha=$$(/usr/bin/shasum -a 256 $(SRCS) | cut -d ' ' -f1)
1111
cat > $@ <<EOF
1212
**Changes since $$last_rel**
1313
$$changelog

java/bazel/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ while read -r config; do
3030
IFS=\\| read -r name version urls strip_prefix target_compatible_with primary_url <<< "$$config"
3131
echo "fetching: $$primary_url to $$TMP_FILE" > /dev/stderr
3232
curl --silent --fail -o $$TMP_FILE -L "$$primary_url" > /dev/stderr
33-
sha256=`sha256sum $$TMP_FILE | cut -d' ' -f1`
33+
sha256=`shasum -a 256 $$TMP_FILE | cut -d' ' -f1`
3434
echo "struct("
3535
echo " name = \\"$$name\\","
3636
echo " target_compatible_with = $$target_compatible_with,"

test/check_remote_java_tools_configs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function download_and_check_hash() {
2222
TMP_FILE=$(mktemp -q /tmp/remotejavatools.XXXXXX)
2323
echo "fetching $name from $url to ${TMP_FILE}"
2424
curl --silent -o ${TMP_FILE} -L "$url"
25-
actual_hash=`sha256sum ${TMP_FILE} | cut -d' ' -f1`
25+
actual_hash=`shasum -a 256 ${TMP_FILE} | cut -d' ' -f1`
2626
if [ "${hash}" != "${actual_hash}" ]; then
2727
echo "ERROR: wrong hash for ${name}! wanted: ${hash}, got: ${actual_hash}"
2828
exit 1

test/check_remote_jdk_configs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ for config in "$@"; do
2121
IFS=, read -r name url mirror_url hash strip_prefix <<< "${config}"
2222
echo "fetching $name from $url to ${TMP_FILE}"
2323
curl --silent -o ${TMP_FILE} -L "$url"
24-
actual_hash=$(sha256sum ${TMP_FILE} | cut -d' ' -f1)
24+
actual_hash=$(shasum -a 256 ${TMP_FILE} | cut -d' ' -f1)
2525
if [ "${hash}" != "${actual_hash}" ]; then
2626
echo "ERROR: wrong hash for ${name}! wanted: ${hash}, got: ${actual_hash}"
2727
exit 1

0 commit comments

Comments
 (0)