gnu: go-github-com-burntsushi-toml: Enable all tests.

* gnu/packages/golang-xyz.scm (go-github-com-burntsushi-toml)
[arguments]: <#:phases>: Use custom 'check phase.

Change-Id: Ie0b76af157c7b8b7ddd18c934e79f895712cb365
This commit is contained in:
Sharlatan Hellseher 2024-07-21 11:26:47 +01:00
parent acdc473e0f
commit 294d3fde53
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1062,7 +1062,16 @@ (define-public go-github-com-burntsushi-toml
(base32 "1vk0s7pcn80hkx0lcyws509gqs42c8y1rppv05zxiqj0yn2zrjnx"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/BurntSushi/toml"))
(list
#:import-path "github.com/BurntSushi/toml"
#:phases
#~(modify-phases %standard-phases
;; XXX: Replace when go-build-system supports nested path.
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(home-page "https://github.com/BurntSushi/toml")
(synopsis "Toml parser and encoder for Go")
(description