[arvados] updated: 2.1.0-3171-g09070ac16

git repository hosting git at public.arvados.org
Thu Dec 8 17:10:56 UTC 2022


Summary of changes:
 sdk/go/arvados/client.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

       via  09070ac166e1855a33657c94c4cea0b5d098e013 (commit)
      from  b42be9bfa071ce609d1fb3cf61a2e736123fee36 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 09070ac166e1855a33657c94c4cea0b5d098e013
Author: Tom Clegg <tom at curii.com>
Date:   Thu Dec 8 12:06:55 2022 -0500

    19862: Fix RandomUUID length.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/sdk/go/arvados/client.go b/sdk/go/arvados/client.go
index 4d140517e..5a498b01f 100644
--- a/sdk/go/arvados/client.go
+++ b/sdk/go/arvados/client.go
@@ -609,5 +609,9 @@ func RandomUUID(clusterID, infix string) string {
 	if err != nil {
 		panic(err)
 	}
-	return clusterID + "-" + infix + "-" + n.Text(36)
+	nstr := n.Text(36)
+	for len(nstr) < 15 {
+		nstr = "0" + nstr
+	}
+	return clusterID + "-" + infix + "-" + nstr
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list