Add the optional Time key to the vx.y.z.info file. This should help
https://pkg.go.dev/libguestfs.org/libnbd to show the "Published" date.
$ cat
libguestfs.org/libnbd/@v/v1.11.3-7-g7954c45.info | jq
{
"Version": "v1.11.3-7-g7954c45",
"Time": "2021-11-08"
}
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
golang/make-dist.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/golang/make-dist.sh b/golang/make-dist.sh
index 1aef36c..614dda3 100755
--- a/golang/make-dist.sh
+++ b/golang/make-dist.sh
@@ -100,8 +100,9 @@ v_dir=$module_dir/@v
mkdir -p $v_dir
-echo "{\"Version\": \"$version\"}" >
$module_dir/@latest
-echo "{\"Version\": \"$version\"}" >
$v_dir/$version.info
+info="{\"Version\": \"$version\", \"Time\":
\"$(date --rfc-3339=date)\"}"
+echo "$info" > $module_dir/@latest
+echo "$info" > $v_dir/$version.info
# This is not entirely correct. This file should have a list of all
# versions available, here we create only single version. This should
--
2.31.1