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