You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/12/06 23:46:52 UTC

[airflow] branch master updated: Change the format for sha512 sum for releases (#12867)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new a00f250  Change the format for sha512 sum for releases (#12867)
a00f250 is described below

commit a00f25011fc6c859b27b6c78b9201880cf6323ce
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Sun Dec 6 23:46:06 2020 +0000

    Change the format for sha512 sum for releases (#12867)
    
    closes https://github.com/apache/airflow/issues/12832
    
    This format is popular and supported by tools like Ansible.
    
    ```
    ❯ sha512sum ../airflow-dev/1.10.14rc3/apache-airflow-1.10.14rc3-bin.tar.gz
    953d3c04ee6fd2fa96e126750e642fc0872add96d180901440a91bd61c494a711b48836c634d93dcb181006935772556d5b4426671bf1a638f0a0698b51b119f  ../airflow-dev/1.10.14rc3/apache-airflow-1.10.14rc3-bin.tar.gz
    ```
    
    vs
    
    ```
    ❯ gpg --print-md SHA512 ../airflow-dev/1.10.14rc3/apache-airflow-1.10.14rc3-bin.tar.gz
    ../airflow-dev/1.10.14rc3/apache-airflow-1.10.14rc3-bin.tar.gz:
    953D3C04 EE6FD2FA 96E12675 0E642FC0 872ADD96 D1809014 40A91BD6 1C494A71 1B48836C
     634D93DC B1810069 35772556 D5B44266 71BF1A63 8F0A0698 B51B119F
    ```
---
 dev/README_RELEASE_AIRFLOW.md | 2 +-
 dev/sign.sh                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md
index 8ade59d..523b3fc 100644
--- a/dev/README_RELEASE_AIRFLOW.md
+++ b/dev/README_RELEASE_AIRFLOW.md
@@ -380,7 +380,7 @@ Run this:
 ```shell script
 for i in *.sha512
 do
-    echo "Checking $i"; gpg --print-md SHA512 `basename $i .sha512 ` | diff - $i
+    echo "Checking $i"; shasum -a 512 `basename $i .sha512 ` | diff - $i
 done
 ```
 
diff --git a/dev/sign.sh b/dev/sign.sh
index a809fc6..a1b6916 100755
--- a/dev/sign.sh
+++ b/dev/sign.sh
@@ -30,5 +30,5 @@ SIGN_WITH="${SIGN_WITH:-apache.org}"
 for name in "${@}"
 do
     gpg --armor --local-user "$SIGN_WITH" --output "${name}.asc" --detach-sig "${name}"
-    gpg --print-md SHA512 "${name}" > "${name}.sha512"
+    shasum -a 512 "${name}" > "${name}.sha512"
 done