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

commit ff7a91ea5f0352127808b745d0b183b0db1a171a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jun 12 23:30:49 2026 +0100

    gnu: Add go-github-com-kisielk-errcheck.
    
    * gnu/packages/golang-check.scm (go-github-com-kisielk-errcheck,
    go-errcheck): New variables.
    
    Change-Id: I20dbc9ceabc63ff96e9a45c685ae70ef795fe648
---
 gnu/packages/golang-check.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index a8ba494e03..a9c8cdcec5 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -2322,6 +2322,34 @@ library's testing/fstest package.")
 per-goroutine.")
     (license license:expat)))
 
+(define-public go-github-com-kisielk-errcheck
+  (package
+    (name "go-github-com-kisielk-errcheck")
+    (version "1.20.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/kisielk/errcheck";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "12q53bwy6hrx2vhyr54wqgk85zpih99fndniy6h0kq6mwld78yvd"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:skip-build? #t
+      #:import-path "github.com/kisielk/errcheck"
+      #:test-flags
+      #~(list "-skip" "TestTypeParameterizedFunctionExclude/detected")))
+    (propagated-inputs
+     (list go-golang-org-x-tools))
+    (home-page "https://github.com/kisielk/errcheck";)
+    (synopsis "Check whether @code{error} is checked in Go code")
+    (description
+     "@code{errcheck} finds silently ignored errors in Go code.")
+    (license license:expat)))
+
 (define-public go-github-com-ldez-tagliatelle
   (package
     (name "go-github-com-ldez-tagliatelle")
@@ -4526,6 +4554,19 @@ similar to the Unix diff command line tool to compare 
files.")
     (propagated-inputs '())
     (inputs '())))
 
+(define-public go-errcheck
+  (package/inherit go-github-com-kisielk-errcheck
+    (name "go-errcheck")
+    (arguments
+     (substitute-keyword-arguments arguments
+       ((#:tests? #t #t) #f)
+       ((#:skip-build? #t #t) #f)
+       ((#:install-source? #t #t) #f)))
+    (native-inputs
+     (package-propagated-inputs go-github-com-kisielk-errcheck))
+    (propagated-inputs '())
+    (inputs '())))
+
 (define-public go-ginkgo
   (package/inherit go-github-com-onsi-ginkgo-v2
     (name "ginkgo")

Reply via email to