gnu: go-github-com-yuin-goldmark: Update to 1.7.8.

* gnu/packages/golang-build.scm (go-github-com-yuin-goldmark): Update to 1.7.8.
[arguments] <phases>: Use default 'check, add 'pre-check.

Change-Id: I110c22378fb6f93cdde794b8a0e41e3de06c2b6f
This commit is contained in:
Sharlatan Hellseher 2024-12-19 21:03:05 +00:00
parent 3ac673dd1d
commit 7c20de79e7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -345,7 +345,7 @@ primitives in Go.")
(define-public go-github-com-yuin-goldmark
(package
(name "go-github-com-yuin-goldmark")
(version "1.7.4")
(version "1.7.8")
(source
(origin
(method git-fetch)
@ -354,24 +354,20 @@ primitives in Go.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "01807xs8501cyhkrrgg6k9ghl9jrw6dp0ry9knygck48canckxs2"))))
(base32 "1iz7x1hqdixx8dkcbaa8lr842i59n843mc553jv5grq057s76yjx"))))
(build-system go-build-system)
(arguments
(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)
(add-before 'check 'pre-check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; We need to extend the timeout on some architectures.
;; 64 is the default in extra_test.go.
(setenv "GOLDMARK_TEST_TIMEOUT_MULTIPLIER"
(number->string (* 64 5)))
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(number->string (* 64 5)))))))))
(home-page "https://github.com/yuin/goldmark/")
(synopsis "Markdown parser")
(description