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

commit 037b1a99bec607a588e2a74be3f4d99fc2784d30
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 15 18:43:06 2024 +0000

    gnu: go-k8s-io-klog-v2: Fix build.
    
    * gnu/packages/golang-xyz.scm (go-k8s-io-klog-v2)
    [arguments]<test-flags>: Skip 5 tests.
    <phases>: Add 'remove-examples.
    
    Change-Id: I9d543b6a4a695f1c9106189af327c388faa65f3c
---
 gnu/packages/golang-xyz.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index a4fe358fc3..d692733c43 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -10538,7 +10538,22 @@ also provides V-style logging controlled by the 
@code{-v} and
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "k8s.io/klog/v2"))))
+      #:import-path "k8s.io/klog/v2"
+      #:test-flags
+      #~(list "-skip"
+              (string-join
+               (list "TestDestinationsWithDifferentFlags/with_log_file_only"
+                     "TestDestinationsWithDifferentFlags/everything_disabled"
+                     "TestDestinationsWithDifferentFlags/with_log_dir_only"
+                     
"TestDestinationsWithDifferentFlags/with_log_dir_only_and_one_output"
+                     
"TestDestinationsWithDifferentFlags/with_log_file_and_log_dir")
+               "|"))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-examples
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (delete-file-recursively "examples")))))))))
 
 (define-public go-go-mongodb-org-mongo-driver
   (package

Reply via email to