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

commit 9e704bf9d8a1aaaec99c532235812602247a31f0
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jun 12 23:52:18 2025 +0100

    gnu: go-honnef-co-go-tools: Simplify.
    
    * gnu/packages/golang-check.scm (go-honnef-co-go-tools):
      [arguments] <go>: Use default go-1.24.
      <skip-build?>: Utilize option instead of deleting build phase.
      <phases>: Use default check.
      [propagated-inputs]: Remove go-golang-org-x-mod; add
      go-golang-org-x-exp and go-golang-org-x-sys.
    
    Change-Id: I6a286ebcd0a346a065c689641e2b69f4be41ccb2
---
 gnu/packages/golang-check.scm | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index be77fa9911..859f1305c9 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -2806,22 +2806,13 @@ used to skip the test
     (build-system go-build-system)
     (arguments
      (list
-      #:go go-1.23
-      #:import-path "honnef.co/go/tools"
-      #:phases
-      #~(modify-phases %standard-phases
-          ;; XXX: Workaround for go-build-system's lack of Go modules support.
-          (delete 'build)
-          (replace 'check
-            (lambda* (#:key tests? import-path #:allow-other-keys)
-              (when tests?
-                (with-directory-excursion (string-append "src/" import-path)
-                  (invoke "go" "test" "-v" "./..."))))))))
+      #:skip-build? #t
+      #:import-path "honnef.co/go/tools"))
     (propagated-inputs
      (list go-github-com-burntsushi-toml
            go-golang-org-x-exp
            go-golang-org-x-exp-typeparams
-           go-golang-org-x-mod
+           go-golang-org-x-sys
            go-golang-org-x-tools))
     (home-page "https://staticcheck.dev/";)
     (synopsis "Staticcheck advanced Go linter library")

Reply via email to