From a045f91c9e545cb7de7521da458a9898c62792b2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 6 Feb 2026 00:55:29 +0000 Subject: gnu: Add go-github-com-matryer-moq. * gnu/packages/golang-check.scm (go-github-com-matryer-moq): New variable. Signed-off-by: jgart --- gnu/packages/golang-check.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu') 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 ;;; Copyright © 2025 Maxim Cournoyer ;;; Copyright © 2025 Patrick Norton +;;; Copyright © 2026 Arun Isaac ;;; ;;; 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") -- cgit v1.3