~ruther/guix-local

ade6e5c49ba0ea6c7b05ae7c81654e10961610c8 — Sharlatan Hellseher 1 year, 4 months ago 4e7960b
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
1 files changed, 12 insertions(+), 1 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +12 -1
@@ 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 '())))