From 5adc1eaff0315be8bd608ca42f96bca9509bda8d47d9147fb2b3310be47ff0bb Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 7 Mar 2024 09:48:43 +0300 Subject: [PATCH] Separate .zip and .ziphash.sig steps for assurrance --- mk-mod | 8 +------- mk-mods | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/mk-mod b/mk-mod index 6fb58f6..dda8450 100755 --- a/mk-mod +++ b/mk-mod @@ -6,7 +6,6 @@ vcsurl=$1 vcspath=$2 modname=$3 version=$4 -signkey=$5 dst=$modname/@v mkdir -p $dst @@ -33,9 +32,4 @@ $ziphash $version.zip > $version.ziphash unzip -p $version.zip ${modname}@${version}/go.mod > $version.mod printf '{"Version":"%s","Time":"%s","Origin":{"VCS":"git","URL":"%s","Ref":"refs/tags/%s","Hash":"%s"}}' \ $version $when $vcsurl $version $hsh > $version.info -totouch=($version.info $version.mod $version.zip $version.ziphash) -[[ -z $signkey ]] || { - ssh-keygen -Y sign -f $signkey -n file $version.ziphash - totouch=($totouch $version.ziphash.sig) -} -touch -d $when $totouch +touch -d $when $version.info $version.mod $version.zip $version.ziphash diff --git a/mk-mods b/mk-mods index 8f56511..23aaff2 100755 --- a/mk-mods +++ b/mk-mods @@ -8,5 +8,6 @@ modbase=$3 signkey=$4 $root/list-vers $vcspath $modbase | while IFS=" " read modname version ; do - $root/mk-mod $vcsurl $vcspath $modname $version $signkey + $root/mk-mod $vcsurl $vcspath $modname $version + $root/mk-mod-sig $modname $version $signkey done -- 2.44.0