guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

123/401: gnu: go-github-com-mdlayher-netlink: Simplify package.


From: guix-commits
Subject: 123/401: gnu: go-github-com-mdlayher-netlink: Simplify package.
Date: Thu, 26 Dec 2024 19:30:42 -0500 (EST)

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

commit 3bfb44d70451181043257091622351073f89efaa
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Dec 13 00:32:49 2024 +0000

    gnu: go-github-com-mdlayher-netlink: Simplify package.
    
    * gnu/packages/golang-web.scm (go-github-com-mdlayher-netlink)
    [source]<snippet>: Remove submodule with integration tests to break
    cycle.
    [arguments]<test-flags>: Move test skipping logic here.
    <phases>: Remove 'disable-failing-tests.
    
    Change-Id: I66e32ce985ea5162da8c7d0705207ea1d5323685
---
 gnu/packages/golang-web.scm | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index d856820a60..6aaee88798 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -3782,21 +3782,20 @@ via REST APIs.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma"))))
+        (base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Cycles with go-github-com-jsimonetti-rtnetlink.
+            (delete-file-recursively "internal/integration")))))
     (build-system go-build-system)
     (arguments
      (list
       #:import-path "github.com/mdlayher/netlink"
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'disable-failing-tests
-            (lambda* (#:key tests? import-path #:allow-other-keys)
-              (with-directory-excursion (string-append "src/" import-path)
-                (substitute* (find-files "." "_test\\.go$")
-                  ;; failed to start command "ip": exec: "ip": executable file
-                  ;; not found in $PATH
-                  (("TestIntegrationConnSetBuffersSyscallConn")
-                   "OffTestIntegrationConnSetBuffersSyscallConn"))))))))
+      #:test-flags
+      ;; Test fails to start command "ip": exec: "ip": executable file not
+      ;; found in $PATH
+      #~(list "-skip" "TestIntegrationConnSetBuffersSyscallConn")))
     (propagated-inputs
      (list go-github-com-google-go-cmp
            go-github-com-josharian-native



reply via email to

[Prev in Thread] Current Thread [Next in Thread]