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

tison pushed a commit to branch tisonkun-patch-1
in repository https://gitbox.apache.org/repos/asf/kvrocks.git

commit 48537f670b961573e80066ae636dbd2e3917a229
Author: tison <[email protected]>
AuthorDate: Thu Aug 31 08:50:34 2023 +0800

    Replace sha512sum with shasum
    
    sha512sum is part of GNU coreutils and shasum is a Perl script. macOS 
doesn't have sha512sum out of the box and shasum should have better portability.
---
 x.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x.py b/x.py
index 4641c983..08641028 100755
--- a/x.py
+++ b/x.py
@@ -262,9 +262,9 @@ def package_source(release_version: str, 
release_candidate_number: Optional[int]
     run(gpg, '--detach-sign', '--armor', tarball)
 
     # 4. Generate sha512 checksum
-    sha512sum = find_command('sha512sum', msg='sha512sum is required for 
source packaging')
+    shasum = find_command('shasum', msg='shasum is required for source 
packaging')
     with open(f'{tarball}.sha512', 'w+') as f:
-        run(sha512sum, tarball, stdout=f)
+        run(shasum, '-a', '512', tarball, stdout=f)
 
 
 def test_cpp(dir: str, rest: List[str]) -> None:

Reply via email to