From f6687e700b5ec0bd50020d72df2ab3faf4e8679d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 27 Jan 2025 11:34:49 +0000 Subject: [PATCH] gnu: go-github-com-zclconf-go-cty: Skip some tests on non 64bit arch. As seen in , 2 tests failed on i686-linux, where all passed on x86_64-linux. These changes skip some tests on non 64bit architectures. * gnu/packages/golang-xyz.scm (go-github-com-zclconf-go-cty) [arguments] : Conditionally skip some tests on non 64bit architectures. Change-Id: Ib9c50f297744d0fe4b6f40811fdeeeb2d22a361d --- gnu/packages/golang-xyz.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 60321ace58..f2d58bbb99 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15819,7 +15819,11 @@ Go host programs.") (arguments (list #:skip-build? #t - #:import-path "github.com/zclconf/go-cty")) + #:import-path "github.com/zclconf/go-cty" + #:test-flags + ;; Tests fail on non 64bit systems: unexpected error: invalid index: + ;; value must be a whole number, between -2147483648 and 2147483647. + #~(list #$@(if (not (target-64bit?)) '("-skip" "TestElement") '())))) (native-inputs (list go-github-com-google-go-cmp)) (propagated-inputs