From 1edca36f334b081a10bfb30d043c951c9bb6ab18 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 3 Jul 2024 09:18:44 +0100 Subject: [PATCH] gnu: go-github-com-yuin-goldmark: Enable all tests. * gnu/packages/golang-build.scm (go-github-com-yuin-goldmark) [arguments]: <#:phases>: Use custom 'check phase. [description]: Start from the new line. Change-Id: I81c2c17c91460c77de385c38d9a3c3311656925a --- gnu/packages/golang-build.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index d0a8971870..b7e7b6f14f 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -70,10 +70,21 @@ (base32 "01807xs8501cyhkrrgg6k9ghl9jrw6dp0ry9knygck48canckxs2")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/yuin/goldmark")) + (list + #:import-path "github.com/yuin/goldmark" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) (home-page "https://github.com/yuin/goldmark/") (synopsis "Markdown parser") - (description "This package provides a markdown parser.") + (description + "This package provides a markdown parser.") (license license:expat))) (define-public go-golang-org-x-crypto