From ade6e5c49ba0ea6c7b05ae7c81654e10961610c8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 25 Jan 2025 12:30:12 +0000 Subject: [PATCH] gnu: go-github-com-pelletier-go-toml-v2: Remove benchmarks. It's an attempt to fix build in CI as seen in ; 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] : Skip one test related to benchmarks, run short test just once. : Add 'remove-benchmarks. Change-Id: Id2aac003ba5c9705173eea132185d2fb51e701f7 --- gnu/packages/golang-xyz.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index cb17c107562bc5528871184ddfe7bbdf0b43bdae..4cd014e627d3867ec7c2fffde9b03f803e452875 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 '())))