guix_mirror_bot pushed a commit to branch master
in repository guix.
commit a045f91c9e545cb7de7521da458a9898c62792b2
Author: Arun Isaac <[email protected]>
AuthorDate: Fri Feb 6 00:55:29 2026 +0000
gnu: Add go-github-com-matryer-moq.
* gnu/packages/golang-check.scm (go-github-com-matryer-moq): New variable.
Signed-off-by: jgart <[email protected]>
---
gnu/packages/golang-check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index b77ef6efdc..31973f5dd6 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -27,6 +27,7 @@
;;; Copyright © 2024 Roman Scherer <[email protected]>
;;; Copyright © 2025 Maxim Cournoyer <[email protected]>
;;; Copyright © 2025 Patrick Norton <[email protected]>
+;;; Copyright © 2026 Arun Isaac <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3070,6 +3071,37 @@ the end of a test.")
built-in @code{testing} package, but can be used in other contexts too.")
(license license:asl2.0)))
+(define-public go-github-com-matryer-moq
+ (package
+ (name "go-github-com-matryer-moq")
+ (version "0.6.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/matryer/moq")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0s2ls1wkqapdqw4yjlbwbyp25c3iwi4pp706qlxapds5sx1izq5x"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:go go-1.25
+ #:import-path "github.com/matryer/moq"
+ ;; Disable failing tests.
+ #:test-flags #~(list "-skip"
+ (string-join (list
"TestGoGenerateVendoredPackages"
+ "TestMockGolden/TypeAlias"
+ "TestModulesNestedPackage")
+ "|"))))
+ (propagated-inputs (list go-github-com-pmezard-go-difflib
+ go-golang-org-x-tools))
+ (home-page "https://github.com/matryer/moq")
+ (synopsis "Interface mocking tool for @command{go generate}")
+ (description "Moq is a tool that generates a struct from any
+interface. The struct can be used in test code as a mock of the interface.")
+ (license license:expat)))
+
(define-public go-golang-org-x-lint
(package
(name "go-golang-org-x-lint")