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

commit ba0fb79738c6022c69af49517ad8477e57d3bdf7
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Dec 19 19:03:10 2024 +0000

    gnu: go-golang-org-x-image: Update to 0.23.0.
    
    * gnu/packages/golang-build.scm (go-golang-org-x-image): Update to 0.23.0.
    Simplify package.
    [arguments] <phases>: Remove 'remove-failing-tests, use default 'check.
    
    Change-Id: I937397be7b3aad3adda86e706a083e26d537cf28
---
 gnu/packages/golang-build.scm | 22 ++++------------------
 1 file changed, 4 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 9b196c7f33..bc02164cb3 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -595,7 +595,7 @@ compile does not support generics.")
 (define-public go-golang-org-x-image
   (package
     (name "go-golang-org-x-image")
-    (version "0.20.0")
+    (version "0.23.0")
     (source
      (origin
        (method git-fetch)
@@ -604,32 +604,18 @@ compile does not support generics.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0bn85bqpwkznny3lrnlfk05s2p917rbq0kplz36xyv490a74pi7l"))))
+        (base32 "0xm3cqzh0j6s8m8k6c3rd170qbmz2lwb628jb48cl4wr6ivq5fp9"))))
     (build-system go-build-system)
     (arguments
      (list
       #:import-path "golang.org/x/image"
       #:phases
       #~(modify-phases %standard-phases
-          ;; XXX: go-build-system can't install/build submodules.
-          (delete 'build)
+          (delete 'build) ; no go files in project's root
           (add-after 'unpack 'remove-examples
             (lambda* (#:key import-path #:allow-other-keys)
               (delete-file-recursively
-               (string-append "src/" import-path "/example"))))
-          (add-before 'check 'remove-failing-tests
-            (lambda* (#:key import-path #:allow-other-keys)
-              (with-directory-excursion (string-append "src/" import-path)
-                (for-each delete-file
-                          ;; tiff/reader_test.go:557:14: too many errors
-                          (list "tiff/reader_test.go"
-                                "tiff/writer_test.go")))))
-          ;; XXX: Workaround for go-build-system's lack of Go modules support.
-          (replace 'check
-            (lambda* (#:key tests? import-path #:allow-other-keys)
-              (when tests?
-                (with-directory-excursion (string-append "src/" import-path)
-                  (invoke "go" "test" "-v" "./..."))))))))
+               (string-append "src/" import-path "/example")))))))
     (propagated-inputs
      (list go-golang-org-x-text))
     (home-page "https://pkg.go.dev/golang.org/x/image";)

Reply via email to