guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 4d9b38d94a797a020d42971b482a001deb815088
Author: Efraim Flashner <[email protected]>
AuthorDate: Fri Oct 17 11:37:21 2025 +0300

    gnu: go-1.23: Fix tests on aarch64-linux.
    
    * gnu/packages/golang.scm (go-1.23)[arguments]: Replace the
    'disable-more-tests phase.
    
    Change-Id: I008d6d73aaeabce5d83fe044473b37902d2d375f
---
 gnu/packages/golang.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4e53d49a7e..30409de09d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1000,7 +1000,18 @@ in the style of communicating sequential processes 
(@dfn{CSP}).")
      (substitute-keyword-arguments (package-arguments go-1.22)
        ((#:phases phases)
         #~(modify-phases #$phases
-            (delete 'disable-more-tests)))))
+            (replace 'disable-more-tests
+              (lambda _
+                #$@(cond
+                     ((target-aarch64?)
+                      ;; https://go-review.googlesource.com/c/go/+/151303
+                      ;; This test is known buggy on aarch64 and is enabled and
+                      ;; disabled upstream with some regularity.
+                      #~((substitute* "src/plugin/plugin_test.go"
+                           (("package plugin_test")
+                            (string-append "// +build !linux linux,!arm64\n\n"
+                                           "package plugin_test")))))
+                     (else (list #t)))))))))
     (properties
      `((compiler-cpu-architectures
          ("aarch64" ,@%go-1.23-arm64-micro-architectures)

Reply via email to