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

commit 83e13ab8c845944a0c14abdd9f35ae64a9f4b61e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Oct 9 22:39:50 2025 +0100

    gnu: go-github-com-ugorji-go-codec: Fix build.
    
    * gnu/packages/golang-web.scm (go-github-com-ugorji-go-codec)[source]
    <snippet>: Remove submodule with it's own go.mod file.
    [arguments] <go>: Use default (go-1.24).
    <import-path>: Adjust to the one from go.mod.
    <unpack-path>: Drop it.
    [phases]{remove-benchmarks}: Adjust path to benchmarks.
    
    Change-Id: If1fa03e36075593ee772c5c7b62e57aa2c6dd714
---
 gnu/packages/golang-web.scm | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 7ba4791e22..e0ea25940d 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10961,23 +10961,31 @@ extract data from those paths.")
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/ugorji/go";)
-             (commit (string-append "v" version))))
+              (url "https://github.com/ugorji/go";)
+              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1mny5gm5gr82hz4y6k5ljaa0khjw647ys278wq750fgrbzp6fs8h"))))
+        (base32 "1mny5gm5gr82hz4y6k5ljaa0khjw647ys278wq750fgrbzp6fs8h"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Submodules with their own go.mod files and packaged separately:
+            ;;
+            ;; - github.com/ugorji/go/codec/codecgen
+            (delete-file-recursively "codec/codecgen")))))
     (build-system go-build-system)
     (arguments
      (list
-      #:go go-1.23
-      #:import-path "github.com/ugorji/go/codec"
-      #:unpack-path "github.com/ugorji/go"
+      #:skip-build? #t
+      #:import-path "github.com/ugorji/go"
+      #:test-flags
+      #~(list "-vet=off")   ;[email protected] forces vet, but tests are not ready yet.
       #:phases #~(modify-phases %standard-phases
                    (add-after 'unpack 'remove-benchmarks
                      (lambda* (#:key import-path #:allow-other-keys)
                        (delete-file-recursively (string-append "src/"
                                                                import-path
-                                                               "/bench")))))))
+                                                               
"/codec/bench")))))))
     (propagated-inputs (list go-golang-org-x-tools))
     (home-page "https://github.com/ugorji/go";)
     (synopsis "Codec and encoding library for various serialization formats")

Reply via email to