summaryrefslogtreecommitdiff
path: root/gnu/packages/golang-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-01-25 12:30:12 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-25 12:30:22 +0000
commitade6e5c49ba0ea6c7b05ae7c81654e10961610c8 (patch)
tree13ab54979e74c80450501bbbf5ba97a620f69db0 /gnu/packages/golang-xyz.scm
parent4e7960bfbe4b9a9fa7d4a6273cf3197f72a0a3fa (diff)
gnu: go-github-com-pelletier-go-toml-v2: Remove benchmarks.
It's an attempt to fix build in CI as seen in <https://ci.guix.gnu.org/build/7688093/log/raw>; however the check phase passed successfully on 16 threads machine even with benchmarks enabled. * gnu/packages/golang-xyz.scm (go-github-com-pelletier-go-toml-v2) [arguments] <test-falgs>: Skip one test related to benchmarks, run short test just once. <phases>: Add 'remove-benchmarks. Change-Id: Id2aac003ba5c9705173eea132185d2fb51e701f7
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r--gnu/packages/golang-xyz.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index cb17c10756..4cd014e627 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -12312,7 +12312,18 @@ programs that use traditional command lines.")
(base32 "0hqxj34d49snvc2m6lxfjxks3z9sic9xbb6w49ajrqbzy953spzs"))))
(build-system go-build-system)
(arguments
- (list #:import-path "github.com/pelletier/go-toml/v2"))
+ (list
+ #:import-path "github.com/pelletier/go-toml/v2"
+ #:test-flags
+ #~(list "-short"
+ "-count" "1"
+ "-skip" "FuzzUnmarshal") ; for benchmark
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-benchmarks
+ (lambda* (#:key import-path #:allow-other-keys)
+ (delete-file-recursively
+ (string-append "src/" import-path "/benchmark")))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs '())))