From 951eaefb8fb0f27fe5aeb2007f5914f263c6d8bd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 15 Dec 2024 18:43:06 +0000 Subject: [PATCH] gnu: go-k8s-io-klog-v2: Fix build. * gnu/packages/golang-xyz.scm (go-k8s-io-klog-v2) [arguments]: Skip 5 tests. : 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 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