Skip to content

Commit

Permalink
remove sha256 (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu authored Dec 13, 2024
1 parent a701ade commit 88bbae3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
tar_gz="${id}.tar.gz"
echo "TAR_GZ=${tar_gz}" >> ${GITHUB_ENV}
git archive HEAD --prefix "${id}/" --output "${tar_gz}"
sha256sum "${tar_gz}" > "${tar_gz}.sha256"
sha512sum "${tar_gz}" > "${tar_gz}.sha512"
- name: Audit
run: |
Expand Down
2 changes: 1 addition & 1 deletion dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ You must install the following to run the script:

* `curl`
* `gpg`
* `shasum` or `sha256sum`/`sha512sum`
* `shasum` or `sha512sum`
* `tar`

You don't need to have Go installed, if it isn't on the system the latest Go will be
Expand Down
4 changes: 0 additions & 4 deletions dev/release/verify_rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ import_gpg_keys() {
}

if type shasum >/dev/null 2>&1; then
sha256_verify="shasum -a 256 -c"
sha512_verify="shasum -a 512 -c"
else
sha256_verify="sha256sum -c"
sha512_verify="sha512sum -c"
fi

Expand All @@ -102,8 +100,6 @@ fetch_archive() {
download_rc_file "${ARCHIVE_BASE_NAME}.tar.gz.asc"
gpg --verify "${ARCHIVE_BASE_NAME}.tar.gz.asc" "${ARCHIVE_BASE_NAME}.tar.gz"
fi
download_rc_file "${ARCHIVE_BASE_NAME}.tar.gz.sha256"
${sha256_verify} "${ARCHIVE_BASE_NAME}.tar.gz.sha256"
download_rc_file "${ARCHIVE_BASE_NAME}.tar.gz.sha512"
${sha512_verify} "${ARCHIVE_BASE_NAME}.tar.gz.sha512"
}
Expand Down

0 comments on commit 88bbae3

Please sign in to comment.