guix_mirror_bot pushed a commit to branch go-team
in repository guix.

commit e3efd052e416d3e63c0ccc8426bd7562da5acd1d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jun 23 10:55:54 2026 +0100

    gnu: go-go-etcd-io-etcd-client-pkg-v3: Update to 3.6.12.
    
    * gnu/packages/golang-web.scm (go-go-etcd-io-etcd-client-pkg-v3): Update to 
3.6.12.
    [source] <snippet>: Fix import-path.
    [arguments] <import-path>: Sync with go.mod.
---
 gnu/packages/golang-web.scm | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 634ec0f6a7..17cc34ed30 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -21503,17 +21503,16 @@ interacting with the etcd v3 API.")
 (define-public go-go-etcd-io-etcd-client-pkg-v3
   (package
     (name "go-go-etcd-io-etcd-client-pkg-v3")
-    (version "3.6.10")
+    (version "3.6.12")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
               (url "https://github.com/etcd-io/etcd";)
-              (commit (go-version->git-ref version
-                                           #:subdir "client/pkg"))))
+              (commit (go-version->git-ref version #:subdir "client/pkg"))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0xyq7flcdvbmiss0snriylvabkwclhyb3977vl1xy9gxq94cwqq4"))
+        (base32 "0xg0bh3fv4av63ika8f7vgj4f929b108ia5ccyqrv00j3k4vyjm1"))
        (modules '((guix build utils)
                   (ice-9 ftw)
                   (srfi srfi-26)))
@@ -21526,14 +21525,20 @@ interacting with the etcd v3 API.")
                        (items (scandir "." pred)))
                   (for-each (cut delete-file-recursively <>) items))))
             (delete-all-but "." "client")
-            (delete-all-but "client" "pkg")))))
+            (delete-all-but "client" "pkg")
+            ;; This is a workaround to provide a correct import-path.
+            (rename-file "client/pkg" "client/tmp")
+            (mkdir-p "client/pkg/v3")
+            (copy-recursively "client/tmp" "client/pkg/v3")
+            (delete-file-recursively "client/tmp")))))
     (build-system go-build-system)
     (arguments
      (list
       #:skip-build? #t
-      #:import-path "go.etcd.io/etcd/client/pkg"
+      #:import-path "go.etcd.io/etcd/client/pkg/v3"
       #:unpack-path "go.etcd.io/etcd"))
-    (native-inputs (list go-github-com-stretchr-testify))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
     (propagated-inputs
      (list go-github-com-coreos-go-systemd-v22
            go-go-uber-org-zap

Reply via email to