You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/08/07 05:43:08 UTC
[GitHub] [hadoop] ctubbsii commented on a change in pull request #1243:
HADOOP-16494. Add SHA-512 checksum to release artifact to comply with the
release distribution policy
ctubbsii commented on a change in pull request #1243: HADOOP-16494. Add SHA-512 checksum to release artifact to comply with the release distribution policy
URL: https://github.com/apache/hadoop/pull/1243#discussion_r311375764
##########
File path: dev-support/bin/create-release
##########
@@ -641,7 +641,7 @@ function signartifacts
for i in ${ARTIFACTS_DIR}/*; do
${GPG} --use-agent --armor --output "${i}.asc" --detach-sig "${i}"
- ${GPG} --print-mds "${i}" > "${i}.mds"
+ shasum -a 512 "${i}" > "${i}.sha512"
Review comment:
If you add `--tag` to this command, the file format is a bit more self-descriptive. The `--tag` option uses BSD-style checksum, rather than GNU coreutils style, which includes the algorithm name in the file contents explicitly. It also avoids the confusing two space/space-star (text vs. binary comparisons) delimiter of GNU style by always doing binary comparisons.
```suggestion
shasum -a 512 --tag "${i}" > "${i}.sha512"
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org