1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-14 19:10:49 +02:00

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
This commit is contained in:
Sharlatan Hellseher 2025-01-25 12:30:12 +00:00
parent 4e7960bfbe
commit ade6e5c49b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -12312,7 +12312,18 @@ programs that use traditional command lines.")
(base32 "0hqxj34d49snvc2m6lxfjxks3z9sic9xbb6w49ajrqbzy953spzs")))) (base32 "0hqxj34d49snvc2m6lxfjxks3z9sic9xbb6w49ajrqbzy953spzs"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (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 (native-inputs
(list go-github-com-stretchr-testify)) (list go-github-com-stretchr-testify))
(propagated-inputs '()))) (propagated-inputs '())))