summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-12-15 18:43:06 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-21 23:42:02 +0000
commit951eaefb8fb0f27fe5aeb2007f5914f263c6d8bd (patch)
tree23c639ca6a69778a70affe50d26c8347a01774ab
parent34c92639bccc5759710655d2369594e1a2c1f3be (diff)
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
-rw-r--r--gnu/packages/golang-xyz.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b1decbe565..5df211e715 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