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

commit f770bd70e21e28825059c454e85c57f1aec114ad
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Oct 10 12:44:50 2025 +0100

    gnu: go-go-uber-org-mock: Update to 0.6.0.
    
    * gnu/packages/golang-check.scm (go-go-uber-org-mock): Update to 0.6.0.
    [native-inputs]: Add go-github-com-stretchr-testify.
    
    Change-Id: I1c9ff7e9e9d9197f5d70d3ee4f0fc234e6bc013a
---
 gnu/packages/golang-check.scm | 37 ++++++++++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index c256e358c9..7724d6c7e4 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -2753,28 +2753,43 @@ the end of a test.")
 (define-public go-go-uber-org-mock
   (package
     (name "go-go-uber-org-mock")
-    (version "0.4.0")
+    (version "0.6.0")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/uber-go/mock";)
-             (commit (string-append "v" version))))
+              (url "https://github.com/uber-go/mock";)
+              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0mz1cy02m70mdh7hyaqks8bkh9iyv4jgj6h4psww52nr3b9pnyyy"))))
+        (base32 "0svwxxdaix45hy3j4p9r27pqqfk8ghdp20ylp7f0ja97wzx0p1c1"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Submodules with their own go.mod files and packaged separately:
+            ;;
+            ;; - github.com/uber-go/mock/bazel
+            ;; - github.com/uber-go/mock/mockgen/internal/tests/generics
+            ;; - github.com/uber-go/mock/mockgen/internal/tests/typed
+            ;; - github.com/uber-go/mock/tools
+            (for-each delete-file-recursively
+                      (list"bazel"
+                           "mockgen/internal/tests/generics"
+                           "mockgen/internal/tests/typed"
+                           "tools"))))))
     (build-system go-build-system)
     (arguments
      (list
-      ;; XXX: The project contains subdirectory which complicate it's testing
-      ;; and it does not produce any binary.
-      #:tests? #f
+      #:skip-build? #t
       #:import-path "go.uber.org/mock"
-      #:phases
-      #~(modify-phases %standard-phases
-          (delete 'build))))
+      #:test-flags
+      ;; Assertions fail in two tests.
+      #~(list "-skip" "Test_packageModeParser_parsePackage|TestAliases")))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
     (propagated-inputs
-     (list go-golang-org-x-mod go-golang-org-x-tools))
+     (list go-golang-org-x-mod
+           go-golang-org-x-tools))
     (home-page "https://pkg.go.dev/go.uber.org/mock";)
     (synopsis "Mocking framework for the Golang")
     (description

Reply via email to