From 4892c1af84a83b9c966af1dc5ea085f8122cfa05 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 24 Aug 2022 21:45:34 +0300 Subject: gnu: go-github.com-smartystreets-assertions: Update to 1.13.0. * gnu/packages/check.scm (go-github.com-smartystreets-assertions): Update to 1.13.0. --- gnu/packages/check.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 75bd20cff9..2bb8128f34 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -665,16 +665,15 @@ test) much simpler.") (define-public go-github.com-smartystreets-assertions (package (name "go-github.com-smartystreets-assertions") - (version "1.8.1") + (version "1.13.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/smartystreets/assertions") - (commit version))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1j0adgbykl55rf2945g0n5bmqdsnjcqlx5dcmpfh4chki43hiwg9")))) + (base32 "0flf3fb6fsw3bk1viva0fzrzw87djaj1mqvrx2gzg1ssn7xzfrzr")))) (build-system go-build-system) (arguments '(#:import-path "github.com/smartystreets/assertions")) -- cgit 1.4.1 From e77383e16fe4244a82b5e988e6edcfb52bf8965c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 24 Aug 2022 21:50:04 +0300 Subject: gnu: go-github.com-smartystreets-assertions: Skip tests with gccgo. * gnu/packages/check.scm (go-github.com-smartystreets-assertions): Don't run the test suite when building with gccgo. --- gnu/packages/check.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 2bb8128f34..26a49056a2 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -676,7 +676,16 @@ test) much simpler.") (base32 "0flf3fb6fsw3bk1viva0fzrzw87djaj1mqvrx2gzg1ssn7xzfrzr")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/smartystreets/assertions")) + (list + #:import-path "github.com/smartystreets/assertions" + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (unless + ;; The tests fail when run with gccgo. + (false-if-exception (search-input-file inputs "/bin/gccgo")) + (apply (assoc-ref %standard-phases 'check) args))))))) (native-inputs (list go-github.com-smartystreets-gunit)) (synopsis "Assertions for testing with Go") -- cgit 1.4.1